Class SamplingRuleState.Builder

  • Enclosing class:
    SamplingRuleState

    public static final class SamplingRuleState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • arn

        public SamplingRuleState.Builder arn​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN of the sampling rule.
        Returns:
        builder
      • arn

        public SamplingRuleState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - ARN of the sampling rule.
        Returns:
        builder
      • attributes

        public SamplingRuleState.Builder attributes​(@Nullable
                                                    com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> attributes)
        Parameters:
        attributes - Matches attributes derived from the request.
        Returns:
        builder
      • attributes

        public SamplingRuleState.Builder attributes​(java.util.Map<java.lang.String,​java.lang.String> attributes)
        Parameters:
        attributes - Matches attributes derived from the request.
        Returns:
        builder
      • fixedRate

        public SamplingRuleState.Builder fixedRate​(@Nullable
                                                   com.pulumi.core.Output<java.lang.Double> fixedRate)
        Parameters:
        fixedRate - Percentage of matching requests to instrument, after the reservoir is exhausted.
        Returns:
        builder
      • fixedRate

        public SamplingRuleState.Builder fixedRate​(java.lang.Double fixedRate)
        Parameters:
        fixedRate - Percentage of matching requests to instrument, after the reservoir is exhausted.
        Returns:
        builder
      • host

        public SamplingRuleState.Builder host​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> host)
        Parameters:
        host - Matches the hostname from a request URL.
        Returns:
        builder
      • host

        public SamplingRuleState.Builder host​(java.lang.String host)
        Parameters:
        host - Matches the hostname from a request URL.
        Returns:
        builder
      • httpMethod

        public SamplingRuleState.Builder httpMethod​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> httpMethod)
        Parameters:
        httpMethod - Matches the HTTP method of a request.
        Returns:
        builder
      • httpMethod

        public SamplingRuleState.Builder httpMethod​(java.lang.String httpMethod)
        Parameters:
        httpMethod - Matches the HTTP method of a request.
        Returns:
        builder
      • priority

        public SamplingRuleState.Builder priority​(@Nullable
                                                  com.pulumi.core.Output<java.lang.Integer> priority)
        Parameters:
        priority - Priority of the sampling rule.
        Returns:
        builder
      • priority

        public SamplingRuleState.Builder priority​(java.lang.Integer priority)
        Parameters:
        priority - Priority of the sampling rule.
        Returns:
        builder
      • region

        public SamplingRuleState.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 SamplingRuleState.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
      • reservoirSize

        public SamplingRuleState.Builder reservoirSize​(@Nullable
                                                       com.pulumi.core.Output<java.lang.Integer> reservoirSize)
        Parameters:
        reservoirSize - Fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.
        Returns:
        builder
      • reservoirSize

        public SamplingRuleState.Builder reservoirSize​(java.lang.Integer reservoirSize)
        Parameters:
        reservoirSize - Fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.
        Returns:
        builder
      • resourceArn

        public SamplingRuleState.Builder resourceArn​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> resourceArn)
        Parameters:
        resourceArn - Matches the ARN of the AWS resource on which the service runs.
        Returns:
        builder
      • resourceArn

        public SamplingRuleState.Builder resourceArn​(java.lang.String resourceArn)
        Parameters:
        resourceArn - Matches the ARN of the AWS resource on which the service runs.
        Returns:
        builder
      • ruleName

        public SamplingRuleState.Builder ruleName​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> ruleName)
        Parameters:
        ruleName - Name of the sampling rule.
        Returns:
        builder
      • ruleName

        public SamplingRuleState.Builder ruleName​(java.lang.String ruleName)
        Parameters:
        ruleName - Name of the sampling rule.
        Returns:
        builder
      • serviceName

        public SamplingRuleState.Builder serviceName​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> serviceName)
        Parameters:
        serviceName - Matches the `name` that the service uses to identify itself in segments.
        Returns:
        builder
      • serviceName

        public SamplingRuleState.Builder serviceName​(java.lang.String serviceName)
        Parameters:
        serviceName - Matches the `name` that the service uses to identify itself in segments.
        Returns:
        builder
      • serviceType

        public SamplingRuleState.Builder serviceType​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> serviceType)
        Parameters:
        serviceType - Matches the `origin` that the service uses to identify its type in segments.
        Returns:
        builder
      • serviceType

        public SamplingRuleState.Builder serviceType​(java.lang.String serviceType)
        Parameters:
        serviceType - Matches the `origin` that the service uses to identify its type in segments.
        Returns:
        builder
      • tags

        public SamplingRuleState.Builder tags​(@Nullable
                                              com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level
        Returns:
        builder
      • tags

        public SamplingRuleState.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level
        Returns:
        builder
      • tagsAll

        public SamplingRuleState.Builder tagsAll​(@Nullable
                                                 com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • tagsAll

        public SamplingRuleState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • urlPath

        public SamplingRuleState.Builder urlPath​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> urlPath)
        Parameters:
        urlPath - Matches the path from a request URL.
        Returns:
        builder
      • urlPath

        public SamplingRuleState.Builder urlPath​(java.lang.String urlPath)
        Parameters:
        urlPath - Matches the path from a request URL.
        Returns:
        builder
      • version

        public SamplingRuleState.Builder version​(@Nullable
                                                 com.pulumi.core.Output<java.lang.Integer> version)
        Parameters:
        version - Version of the sampling rule format (`1` )
        Returns:
        builder
      • version

        public SamplingRuleState.Builder version​(java.lang.Integer version)
        Parameters:
        version - Version of the sampling rule format (`1` )
        Returns:
        builder