// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1 // ProxySpecApplyConfiguration represents an declarative configuration of the ProxySpec type for use // with apply. type ProxySpecApplyConfiguration struct { HTTPProxy *string `json:"httpProxy,omitempty"` HTTPSProxy *string `json:"httpsProxy,omitempty"` NoProxy *string `json:"noProxy,omitempty"` ReadinessEndpoints []string `json:"readinessEndpoints,omitempty"` TrustedCA *ConfigMapNameReferenceApplyConfiguration `json:"trustedCA,omitempty"` } // ProxySpecApplyConfiguration constructs an declarative configuration of the ProxySpec type for use with // apply. func ProxySpec() *ProxySpecApplyConfiguration { return &ProxySpecApplyConfiguration{} } // WithHTTPProxy sets the HTTPProxy 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 HTTPProxy field is set to the value of the last call. func (b *ProxySpecApplyConfiguration) WithHTTPProxy(value string) *ProxySpecApplyConfiguration { b.HTTPProxy = &value return b } // WithHTTPSProxy sets the HTTPSProxy 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 HTTPSProxy field is set to the value of the last call. func (b *ProxySpecApplyConfiguration) WithHTTPSProxy(value string) *ProxySpecApplyConfiguration { b.HTTPSProxy = &value return b } // WithNoProxy sets the NoProxy 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 NoProxy field is set to the value of the last call. func (b *ProxySpecApplyConfiguration) WithNoProxy(value string) *ProxySpecApplyConfiguration { b.NoProxy = &value return b } // WithReadinessEndpoints adds the given value to the ReadinessEndpoints field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the ReadinessEndpoints field. func (b *ProxySpecApplyConfiguration) WithReadinessEndpoints(values ...string) *ProxySpecApplyConfiguration { for i := range values { b.ReadinessEndpoints = append(b.ReadinessEndpoints, values[i]) } return b } // WithTrustedCA sets the TrustedCA 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 TrustedCA field is set to the value of the last call. func (b *ProxySpecApplyConfiguration) WithTrustedCA(value *ConfigMapNameReferenceApplyConfiguration) *ProxySpecApplyConfiguration { b.TrustedCA = value return b }