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

package v1alpha1

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

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

// 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 *UppercaseActionConfigApplyConfiguration) WithTargetLabel(value string) *UppercaseActionConfigApplyConfiguration {
	b.TargetLabel = &value
	return b
}
