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

package v1alpha1

// DropEqualActionConfigApplyConfiguration represents a declarative configuration of the DropEqualActionConfig type for use
// with apply.
//
// DropEqualActionConfig configures the DropEqual action.
// Drops targets for which the concatenated source_labels do match the value of target_label.
// Requires Prometheus >= v2.41.0.
type DropEqualActionConfigApplyConfiguration struct {
	// targetLabel is the label name whose value is compared to the concatenated source_labels; targets that match are dropped.
	// Must be between 1 and 128 characters in length.
	TargetLabel *string `json:"targetLabel,omitempty"`
}

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

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