// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1 // SyslogLoggingDestinationParametersApplyConfiguration represents an declarative configuration of the SyslogLoggingDestinationParameters type for use // with apply. type SyslogLoggingDestinationParametersApplyConfiguration struct { Address *string `json:"address,omitempty"` Port *uint32 `json:"port,omitempty"` Facility *string `json:"facility,omitempty"` MaxLength *uint32 `json:"maxLength,omitempty"` } // SyslogLoggingDestinationParametersApplyConfiguration constructs an declarative configuration of the SyslogLoggingDestinationParameters type for use with // apply. func SyslogLoggingDestinationParameters() *SyslogLoggingDestinationParametersApplyConfiguration { return &SyslogLoggingDestinationParametersApplyConfiguration{} } // WithAddress sets the Address 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 Address field is set to the value of the last call. func (b *SyslogLoggingDestinationParametersApplyConfiguration) WithAddress(value string) *SyslogLoggingDestinationParametersApplyConfiguration { b.Address = &value return b } // WithPort sets the Port 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 Port field is set to the value of the last call. func (b *SyslogLoggingDestinationParametersApplyConfiguration) WithPort(value uint32) *SyslogLoggingDestinationParametersApplyConfiguration { b.Port = &value return b } // WithFacility sets the Facility 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 Facility field is set to the value of the last call. func (b *SyslogLoggingDestinationParametersApplyConfiguration) WithFacility(value string) *SyslogLoggingDestinationParametersApplyConfiguration { b.Facility = &value return b } // WithMaxLength sets the MaxLength 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 MaxLength field is set to the value of the last call. func (b *SyslogLoggingDestinationParametersApplyConfiguration) WithMaxLength(value uint32) *SyslogLoggingDestinationParametersApplyConfiguration { b.MaxLength = &value return b }