func (b *StatefulSetSpecApplyConfiguration) WithTemplate(value *corev1.PodTemplateSpecApplyConfiguration) *StatefulSetSpecApplyConfiguration {
	b.Template = value
	return b
}
WithTemplate sets the Template 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 Template field is set to the value of the last call.
package v1
import (
	appsv1 "k8s.io/api/apps/v1"
	corev1 "k8s.io/client-go/applyconfigurations/core/v1"
	v1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
type StatefulSetSpecApplyConfiguration struct {
	Replicas             *int32                                           `json:"replicas,omitempty"`
	Selector             *v1.LabelSelectorApplyConfiguration              `json:"selector,omitempty"`
	Template             *corev1.PodTemplateSpecApplyConfiguration        `json:"template,omitempty"`
	VolumeClaimTemplates []corev1.PersistentVolumeClaimApplyConfiguration `json:"volumeClaimTemplates,omitempty"`
	ServiceName          *string                                          `json:"serviceName,omitempty"`
	PodManagementPolicy  *appsv1.PodManagementPolicyType                  `json:"podManagementPolicy,omitempty"`
	UpdateStrategy       *StatefulSetUpdateStrategyApplyConfiguration     `json:"updateStrategy,omitempty"`
	RevisionHistoryLimit *int32                                           `json:"revisionHistoryLimit,omitempty"`
	MinReadySeconds      *int32                                           `json:"minReadySeconds,omitempty"`
}
func StatefulSetSpec() *StatefulSetSpecApplyConfiguration {
	return &StatefulSetSpecApplyConfiguration{}
}
func (b *StatefulSetSpecApplyConfiguration) WithReplicas(value int32) *StatefulSetSpecApplyConfiguration {
	b.Replicas = &value
	return b
}
func (b *StatefulSetSpecApplyConfiguration) WithSelector(value *v1.LabelSelectorApplyConfiguration) *StatefulSetSpecApplyConfiguration {
	b.Selector = value
	return b
}