Files
grafana/pkg/generated/applyconfiguration/alerting_notifications/v0alpha1/templategroupspec.go
T
2024-09-25 09:31:57 -04:00

35 lines
1.4 KiB
Go

// SPDX-License-Identifier: AGPL-3.0-only
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v0alpha1
// TemplateGroupSpecApplyConfiguration represents a declarative configuration of the TemplateGroupSpec type for use
// with apply.
type TemplateGroupSpecApplyConfiguration struct {
Title *string `json:"title,omitempty"`
Content *string `json:"content,omitempty"`
}
// TemplateGroupSpecApplyConfiguration constructs a declarative configuration of the TemplateGroupSpec type for use with
// apply.
func TemplateGroupSpec() *TemplateGroupSpecApplyConfiguration {
return &TemplateGroupSpecApplyConfiguration{}
}
// WithTitle sets the Title 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 Title field is set to the value of the last call.
func (b *TemplateGroupSpecApplyConfiguration) WithTitle(value string) *TemplateGroupSpecApplyConfiguration {
b.Title = &value
return b
}
// WithContent sets the Content 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 Content field is set to the value of the last call.
func (b *TemplateGroupSpecApplyConfiguration) WithContent(value string) *TemplateGroupSpecApplyConfiguration {
b.Content = &value
return b
}