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

com.pulumi.googlenative.compute.v1.outputs.BackendServiceLocalityLoadBalancingPolicyConfigResponse 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 com.pulumi.googlenative.compute.v1.outputs.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyResponse;
import com.pulumi.googlenative.compute.v1.outputs.BackendServiceLocalityLoadBalancingPolicyConfigPolicyResponse;
import java.util.Objects;

@CustomType
public final class BackendServiceLocalityLoadBalancingPolicyConfigResponse {
    private BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyResponse customPolicy;
    private BackendServiceLocalityLoadBalancingPolicyConfigPolicyResponse policy;

    private BackendServiceLocalityLoadBalancingPolicyConfigResponse() {}
    public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyResponse customPolicy() {
        return this.customPolicy;
    }
    public BackendServiceLocalityLoadBalancingPolicyConfigPolicyResponse policy() {
        return this.policy;
    }

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

    public static Builder builder(BackendServiceLocalityLoadBalancingPolicyConfigResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyResponse customPolicy;
        private BackendServiceLocalityLoadBalancingPolicyConfigPolicyResponse policy;
        public Builder() {}
        public Builder(BackendServiceLocalityLoadBalancingPolicyConfigResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.customPolicy = defaults.customPolicy;
    	      this.policy = defaults.policy;
        }

        @CustomType.Setter
        public Builder customPolicy(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyResponse customPolicy) {
            this.customPolicy = Objects.requireNonNull(customPolicy);
            return this;
        }
        @CustomType.Setter
        public Builder policy(BackendServiceLocalityLoadBalancingPolicyConfigPolicyResponse policy) {
            this.policy = Objects.requireNonNull(policy);
            return this;
        }
        public BackendServiceLocalityLoadBalancingPolicyConfigResponse build() {
            final var o = new BackendServiceLocalityLoadBalancingPolicyConfigResponse();
            o.customPolicy = customPolicy;
            o.policy = policy;
            return o;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy