All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.googlenative.compute.v1.outputs.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyResponse Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.googlenative.compute.v1.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyResponse {
    /**
     * @return An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.
     * 
     */
    private String data;
    /**
     * @return Identifies the custom policy. The value should match the name of a custom implementation registered on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (for example, myorg.CustomLbPolicy). The maximum length is 256 characters. Do not specify the same custom policy more than once for a backend. If you do, the configuration is rejected. For an example of how to use this field, see Use a custom policy.
     * 
     */
    private String name;

    private BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyResponse() {}
    /**
     * @return An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.
     * 
     */
    public String data() {
        return this.data;
    }
    /**
     * @return Identifies the custom policy. The value should match the name of a custom implementation registered on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (for example, myorg.CustomLbPolicy). The maximum length is 256 characters. Do not specify the same custom policy more than once for a backend. If you do, the configuration is rejected. For an example of how to use this field, see Use a custom policy.
     * 
     */
    public String name() {
        return this.name;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String data;
        private String name;
        public Builder() {}
        public Builder(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.data = defaults.data;
    	      this.name = defaults.name;
        }

        @CustomType.Setter
        public Builder data(String data) {
            this.data = Objects.requireNonNull(data);
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            this.name = Objects.requireNonNull(name);
            return this;
        }
        public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyResponse build() {
            final var o = new BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyResponse();
            o.data = data;
            o.name = name;
            return o;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy