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

package v1

// AcceptRiskApplyConfiguration represents a declarative configuration of the AcceptRisk type for use
// with apply.
//
// AcceptRisk represents a risk that is considered acceptable.
type AcceptRiskApplyConfiguration struct {
	// name is the name of the acceptable risk.
	// It must be a non-empty string and must not exceed 256 characters.
	Name *string `json:"name,omitempty"`
}

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

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