// Code generated by applyconfiguration-gen. DO NOT EDIT.

package v1

import (
	configv1 "github.com/openshift/api/config/v1"
)

// CloudLoadBalancerConfigApplyConfiguration represents a declarative configuration of the CloudLoadBalancerConfig type for use
// with apply.
type CloudLoadBalancerConfigApplyConfiguration struct {
	DNSType       *configv1.DNSType                       `json:"dnsType,omitempty"`
	ClusterHosted *CloudLoadBalancerIPsApplyConfiguration `json:"clusterHosted,omitempty"`
}

// CloudLoadBalancerConfigApplyConfiguration constructs a declarative configuration of the CloudLoadBalancerConfig type for use with
// apply.
func CloudLoadBalancerConfig() *CloudLoadBalancerConfigApplyConfiguration {
	return &CloudLoadBalancerConfigApplyConfiguration{}
}

// WithDNSType sets the DNSType field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DNSType field is set to the value of the last call.
func (b *CloudLoadBalancerConfigApplyConfiguration) WithDNSType(value configv1.DNSType) *CloudLoadBalancerConfigApplyConfiguration {
	b.DNSType = &value
	return b
}

// WithClusterHosted sets the ClusterHosted field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ClusterHosted field is set to the value of the last call.
func (b *CloudLoadBalancerConfigApplyConfiguration) WithClusterHosted(value *CloudLoadBalancerIPsApplyConfiguration) *CloudLoadBalancerConfigApplyConfiguration {
	b.ClusterHosted = value
	return b
}
