Class CloudRunV2ServiceTraffic.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • percent

        @Stability(Stable)
        public CloudRunV2ServiceTraffic.Builder percent​(Number percent)
        Parameters:
        percent - Specifies percent of the traffic to this Revision. This defaults to zero if unspecified. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#percent CloudRunV2Service#percent}
        Returns:
        this
      • revision

        @Stability(Stable)
        public CloudRunV2ServiceTraffic.Builder revision​(String revision)
        Parameters:
        revision - Revision to which to send this portion of traffic, if traffic allocation is by revision. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#revision CloudRunV2Service#revision}
        Returns:
        this
      • tag

        @Stability(Stable)
        public CloudRunV2ServiceTraffic.Builder tag​(String tag)
        Parameters:
        tag - Indicates a string to be part of the URI to exclusively reference this target. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#tag CloudRunV2Service#tag}
        Returns:
        this
      • type

        @Stability(Stable)
        public CloudRunV2ServiceTraffic.Builder type​(String type)
        Parameters:
        type - The allocation type for this traffic target. Possible values: ["TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST", "TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#type CloudRunV2Service#type}
        Returns:
        this