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

package v1

// GoogleIdentityProviderApplyConfiguration represents a declarative configuration of the GoogleIdentityProvider type for use
// with apply.
type GoogleIdentityProviderApplyConfiguration struct {
	ClientID     *string                                `json:"clientID,omitempty"`
	ClientSecret *SecretNameReferenceApplyConfiguration `json:"clientSecret,omitempty"`
	HostedDomain *string                                `json:"hostedDomain,omitempty"`
}

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

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

// WithClientSecret sets the ClientSecret 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 ClientSecret field is set to the value of the last call.
func (b *GoogleIdentityProviderApplyConfiguration) WithClientSecret(value *SecretNameReferenceApplyConfiguration) *GoogleIdentityProviderApplyConfiguration {
	b.ClientSecret = value
	return b
}

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