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

package v1alpha1

// BackupJobReferenceApplyConfiguration represents a declarative configuration of the BackupJobReference type for use
// with apply.
//
// BackupJobReference holds a reference to the batch/v1 Job created to run the etcd backup
type BackupJobReferenceApplyConfiguration struct {
	// namespace is the namespace of the Job.
	// this is always expected to be "openshift-etcd" since the user provided PVC
	// is also required to be in "openshift-etcd"
	// Required
	Namespace *string `json:"namespace,omitempty"`
	// name is the name of the Job.
	// Required
	Name *string `json:"name,omitempty"`
}

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

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

// 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 *BackupJobReferenceApplyConfiguration) WithName(value string) *BackupJobReferenceApplyConfiguration {
	b.Name = &value
	return b
}
