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

package v1alpha1

// LowercaseActionConfigApplyConfiguration represents a declarative configuration of the LowercaseActionConfig type for use
// with apply.
//
// LowercaseActionConfig configures the Lowercase action.
// Maps the concatenated source_labels to their lower case and writes to target_label.
// Requires Prometheus >= v2.36.0.
type LowercaseActionConfigApplyConfiguration struct {
	// targetLabel is the label name where the lower-cased value is written.
	// Must be between 1 and 128 characters in length.
	TargetLabel *string `json:"targetLabel,omitempty"`
}

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

// WithTargetLabel sets the TargetLabel 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 TargetLabel field is set to the value of the last call.
func (b *LowercaseActionConfigApplyConfiguration) WithTargetLabel(value string) *LowercaseActionConfigApplyConfiguration {
	b.TargetLabel = &value
	return b
}
