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

package v1alpha1

// RSAKeyConfigApplyConfiguration represents a declarative configuration of the RSAKeyConfig type for use
// with apply.
//
// RSAKeyConfig specifies parameters for RSA key generation.
type RSAKeyConfigApplyConfiguration struct {
	// keySize specifies the size of RSA keys in bits.
	// Valid values are multiples of 1024 from 2048 to 8192.
	KeySize *int32 `json:"keySize,omitempty"`
}

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

// WithKeySize sets the KeySize 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 KeySize field is set to the value of the last call.
func (b *RSAKeyConfigApplyConfiguration) WithKeySize(value int32) *RSAKeyConfigApplyConfiguration {
	b.KeySize = &value
	return b
}
