-
Notifications
You must be signed in to change notification settings - Fork 88
/
fabriccametricsstatsd.go
55 lines (48 loc) · 2.51 KB
/
fabriccametricsstatsd.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* Copyright Kungfusoftware.es. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha1
// FabricCAMetricsStatsdApplyConfiguration represents an declarative configuration of the FabricCAMetricsStatsd type for use
// with apply.
type FabricCAMetricsStatsdApplyConfiguration struct {
Network *string `json:"network,omitempty"`
Address *string `json:"address,omitempty"`
WriteInterval *string `json:"writeInterval,omitempty"`
Prefix *string `json:"prefix,omitempty"`
}
// FabricCAMetricsStatsdApplyConfiguration constructs an declarative configuration of the FabricCAMetricsStatsd type for use with
// apply.
func FabricCAMetricsStatsd() *FabricCAMetricsStatsdApplyConfiguration {
return &FabricCAMetricsStatsdApplyConfiguration{}
}
// WithNetwork sets the Network 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 Network field is set to the value of the last call.
func (b *FabricCAMetricsStatsdApplyConfiguration) WithNetwork(value string) *FabricCAMetricsStatsdApplyConfiguration {
b.Network = &value
return b
}
// 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 *FabricCAMetricsStatsdApplyConfiguration) WithAddress(value string) *FabricCAMetricsStatsdApplyConfiguration {
b.Address = &value
return b
}
// WithWriteInterval sets the WriteInterval 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 WriteInterval field is set to the value of the last call.
func (b *FabricCAMetricsStatsdApplyConfiguration) WithWriteInterval(value string) *FabricCAMetricsStatsdApplyConfiguration {
b.WriteInterval = &value
return b
}
// WithPrefix sets the Prefix 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 Prefix field is set to the value of the last call.
func (b *FabricCAMetricsStatsdApplyConfiguration) WithPrefix(value string) *FabricCAMetricsStatsdApplyConfiguration {
b.Prefix = &value
return b
}