// SPDX-License-Identifier: AGPL-3.0-only

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

package v0alpha1

// TokenStatusApplyConfiguration represents a declarative configuration of the TokenStatus type for use
// with apply.
type TokenStatusApplyConfiguration struct {
	LastUpdated *int64 `json:"lastUpdated,omitempty"`
	Expiration  *int64 `json:"expiration,omitempty"`
}

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

// WithLastUpdated sets the LastUpdated 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 LastUpdated field is set to the value of the last call.
func (b *TokenStatusApplyConfiguration) WithLastUpdated(value int64) *TokenStatusApplyConfiguration {
	b.LastUpdated = &value
	return b
}

// WithExpiration sets the Expiration 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 Expiration field is set to the value of the last call.
func (b *TokenStatusApplyConfiguration) WithExpiration(value int64) *TokenStatusApplyConfiguration {
	b.Expiration = &value
	return b
}
