func (b *StatefulSetSpecApplyConfiguration) WithReplicas(value int32) *StatefulSetSpecApplyConfiguration {
	b.Replicas = &value
	return b
}
WithReplicas sets the Replicas 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 Replicas 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{}
}