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

package v1

// GoogleIdentityProviderApplyConfiguration represents a declarative configuration of the GoogleIdentityProvider type for use
// with apply.
//
// GoogleIdentityProvider provides identities for users authenticating using Google credentials
type GoogleIdentityProviderApplyConfiguration struct {
	// clientID is the oauth client ID
	ClientID *string `json:"clientID,omitempty"`
	// clientSecret is a required reference to the secret by name containing the oauth client secret.
	// The key "clientSecret" is used to locate the data.
	// If the secret or expected key is not found, the identity provider is not honored.
	// The namespace for this secret is openshift-config.
	ClientSecret *SecretNameReferenceApplyConfiguration `json:"clientSecret,omitempty"`
	// hostedDomain is the optional Google App domain (e.g. "mycompany.com") to restrict logins to
	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
}
