Class IntegrationResponseState.Builder

  • Enclosing class:
    IntegrationResponseState

    public static final class IntegrationResponseState.Builder
    extends java.lang.Object
    • Method Detail

      • contentHandling

        public IntegrationResponseState.Builder contentHandling​(@Nullable
                                                                com.pulumi.core.Output<java.lang.String> contentHandling)
        Parameters:
        contentHandling - How to handle request payload content type conversions. Supported values are `CONVERT_TO_BINARY` and `CONVERT_TO_TEXT`. If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.
        Returns:
        builder
      • contentHandling

        public IntegrationResponseState.Builder contentHandling​(java.lang.String contentHandling)
        Parameters:
        contentHandling - How to handle request payload content type conversions. Supported values are `CONVERT_TO_BINARY` and `CONVERT_TO_TEXT`. If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.
        Returns:
        builder
      • httpMethod

        public IntegrationResponseState.Builder httpMethod​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> httpMethod)
        Parameters:
        httpMethod - HTTP method (`GET`, `POST`, `PUT`, `DELETE`, `HEAD`, `OPTIONS`, `ANY`).
        Returns:
        builder
      • httpMethod

        public IntegrationResponseState.Builder httpMethod​(java.lang.String httpMethod)
        Parameters:
        httpMethod - HTTP method (`GET`, `POST`, `PUT`, `DELETE`, `HEAD`, `OPTIONS`, `ANY`).
        Returns:
        builder
      • region

        public IntegrationResponseState.Builder region​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public IntegrationResponseState.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • resourceId

        public IntegrationResponseState.Builder resourceId​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> resourceId)
        Parameters:
        resourceId - API resource ID.
        Returns:
        builder
      • responseParameters

        public IntegrationResponseState.Builder responseParameters​(@Nullable
                                                                   com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> responseParameters)
        Parameters:
        responseParameters - Map of response parameters that can be read from the backend response. For example: `responseParameters = { "method.response.header.X-Some-Header" = "integration.response.header.X-Some-Other-Header" }`.
        Returns:
        builder
      • responseParameters

        public IntegrationResponseState.Builder responseParameters​(java.util.Map<java.lang.String,​java.lang.String> responseParameters)
        Parameters:
        responseParameters - Map of response parameters that can be read from the backend response. For example: `responseParameters = { "method.response.header.X-Some-Header" = "integration.response.header.X-Some-Other-Header" }`.
        Returns:
        builder
      • responseTemplates

        public IntegrationResponseState.Builder responseTemplates​(@Nullable
                                                                  com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> responseTemplates)
        Parameters:
        responseTemplates - Map of templates used to transform the integration response body.
        Returns:
        builder
      • responseTemplates

        public IntegrationResponseState.Builder responseTemplates​(java.util.Map<java.lang.String,​java.lang.String> responseTemplates)
        Parameters:
        responseTemplates - Map of templates used to transform the integration response body.
        Returns:
        builder
      • restApi

        public IntegrationResponseState.Builder restApi​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> restApi)
        Parameters:
        restApi - ID of the associated REST API.
        Returns:
        builder
      • selectionPattern

        public IntegrationResponseState.Builder selectionPattern​(@Nullable
                                                                 com.pulumi.core.Output<java.lang.String> selectionPattern)
        Parameters:
        selectionPattern - Regular expression pattern used to choose an integration response based on the response from the backend. Omit configuring this to make the integration the default one. If the backend is an `AWS` Lambda function, the AWS Lambda function error header is matched. For all other `HTTP` and `AWS` backends, the HTTP status code is matched.
        Returns:
        builder
      • selectionPattern

        public IntegrationResponseState.Builder selectionPattern​(java.lang.String selectionPattern)
        Parameters:
        selectionPattern - Regular expression pattern used to choose an integration response based on the response from the backend. Omit configuring this to make the integration the default one. If the backend is an `AWS` Lambda function, the AWS Lambda function error header is matched. For all other `HTTP` and `AWS` backends, the HTTP status code is matched.
        Returns:
        builder
      • statusCode

        public IntegrationResponseState.Builder statusCode​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> statusCode)
        Parameters:
        statusCode - HTTP status code. The following arguments are optional:
        Returns:
        builder
      • statusCode

        public IntegrationResponseState.Builder statusCode​(java.lang.String statusCode)
        Parameters:
        statusCode - HTTP status code. The following arguments are optional:
        Returns:
        builder