Class MonitorState.Builder

  • Enclosing class:
    MonitorState

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

      • Builder

        public Builder()
    • Method Detail

      • adminStateUp

        public MonitorState.Builder adminStateUp​(@Nullable
                                                 com.pulumi.core.Output<java.lang.Boolean> adminStateUp)
        Parameters:
        adminStateUp - The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
        Returns:
        builder
      • adminStateUp

        public MonitorState.Builder adminStateUp​(java.lang.Boolean adminStateUp)
        Parameters:
        adminStateUp - The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
        Returns:
        builder
      • delay

        public MonitorState.Builder delay​(@Nullable
                                          com.pulumi.core.Output<java.lang.Integer> delay)
        Parameters:
        delay - The time, in seconds, between sending probes to members.
        Returns:
        builder
      • delay

        public MonitorState.Builder delay​(java.lang.Integer delay)
        Parameters:
        delay - The time, in seconds, between sending probes to members.
        Returns:
        builder
      • expectedCodes

        public MonitorState.Builder expectedCodes​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> expectedCodes)
        Parameters:
        expectedCodes - Required for HTTP(S) types. Expected HTTP codes for a passing HTTP(S) monitor. You can either specify a single status like "200", or a range like "200-202".
        Returns:
        builder
      • expectedCodes

        public MonitorState.Builder expectedCodes​(java.lang.String expectedCodes)
        Parameters:
        expectedCodes - Required for HTTP(S) types. Expected HTTP codes for a passing HTTP(S) monitor. You can either specify a single status like "200", or a range like "200-202".
        Returns:
        builder
      • httpMethod

        public MonitorState.Builder httpMethod​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> httpMethod)
        Parameters:
        httpMethod - Required for HTTP(S) types. The HTTP method used for requests by the monitor. If this attribute is not specified, it defaults to "GET".
        Returns:
        builder
      • httpMethod

        public MonitorState.Builder httpMethod​(java.lang.String httpMethod)
        Parameters:
        httpMethod - Required for HTTP(S) types. The HTTP method used for requests by the monitor. If this attribute is not specified, it defaults to "GET".
        Returns:
        builder
      • maxRetries

        public MonitorState.Builder maxRetries​(@Nullable
                                               com.pulumi.core.Output<java.lang.Integer> maxRetries)
        Parameters:
        maxRetries - Number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
        Returns:
        builder
      • maxRetries

        public MonitorState.Builder maxRetries​(java.lang.Integer maxRetries)
        Parameters:
        maxRetries - Number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
        Returns:
        builder
      • maxRetriesDown

        public MonitorState.Builder maxRetriesDown​(@Nullable
                                                   com.pulumi.core.Output<java.lang.Integer> maxRetriesDown)
        Parameters:
        maxRetriesDown - Number of permissible ping failures befor changing the member's status to ERROR. Must be a number between 1 and 10 (supported only in Octavia). Changing this updates the max_retries_down of the existing monitor.
        Returns:
        builder
      • maxRetriesDown

        public MonitorState.Builder maxRetriesDown​(java.lang.Integer maxRetriesDown)
        Parameters:
        maxRetriesDown - Number of permissible ping failures befor changing the member's status to ERROR. Must be a number between 1 and 10 (supported only in Octavia). Changing this updates the max_retries_down of the existing monitor.
        Returns:
        builder
      • name

        public MonitorState.Builder name​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - The Name of the Monitor.
        Returns:
        builder
      • name

        public MonitorState.Builder name​(java.lang.String name)
        Parameters:
        name - The Name of the Monitor.
        Returns:
        builder
      • poolId

        public MonitorState.Builder poolId​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> poolId)
        Parameters:
        poolId - The id of the pool that this monitor will be assigned to.
        Returns:
        builder
      • poolId

        public MonitorState.Builder poolId​(java.lang.String poolId)
        Parameters:
        poolId - The id of the pool that this monitor will be assigned to.
        Returns:
        builder
      • region

        public MonitorState.Builder region​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - The region in which to obtain the V2 Networking client. A Networking client is needed to create an . If omitted, the `region` argument of the provider is used. Changing this creates a new monitor.
        Returns:
        builder
      • region

        public MonitorState.Builder region​(java.lang.String region)
        Parameters:
        region - The region in which to obtain the V2 Networking client. A Networking client is needed to create an . If omitted, the `region` argument of the provider is used. Changing this creates a new monitor.
        Returns:
        builder
      • tenantId

        public MonitorState.Builder tenantId​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> tenantId)
        Parameters:
        tenantId - Required for admins. The UUID of the tenant who owns the monitor. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new monitor.
        Returns:
        builder
      • tenantId

        public MonitorState.Builder tenantId​(java.lang.String tenantId)
        Parameters:
        tenantId - Required for admins. The UUID of the tenant who owns the monitor. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new monitor.
        Returns:
        builder
      • timeout

        public MonitorState.Builder timeout​(@Nullable
                                            com.pulumi.core.Output<java.lang.Integer> timeout)
        Parameters:
        timeout - Maximum number of seconds for a monitor to wait for a ping reply before it times out. The value must be less than the delay value.
        Returns:
        builder
      • timeout

        public MonitorState.Builder timeout​(java.lang.Integer timeout)
        Parameters:
        timeout - Maximum number of seconds for a monitor to wait for a ping reply before it times out. The value must be less than the delay value.
        Returns:
        builder
      • type

        public MonitorState.Builder type​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> type)
        Parameters:
        type - The type of probe, which is PING, TCP, HTTP, HTTPS, TLS-HELLO or UDP-CONNECT (supported only in Octavia), that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
        Returns:
        builder
      • type

        public MonitorState.Builder type​(java.lang.String type)
        Parameters:
        type - The type of probe, which is PING, TCP, HTTP, HTTPS, TLS-HELLO or UDP-CONNECT (supported only in Octavia), that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
        Returns:
        builder
      • urlPath

        public MonitorState.Builder urlPath​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> urlPath)
        Parameters:
        urlPath - Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
        Returns:
        builder
      • urlPath

        public MonitorState.Builder urlPath​(java.lang.String urlPath)
        Parameters:
        urlPath - Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
        Returns:
        builder