/
rayservicestatus.go
47 lines (41 loc) · 2.38 KB
/
rayservicestatus.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
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1
// RayServiceStatusApplyConfiguration represents an declarative configuration of the RayServiceStatus type for use
// with apply.
type RayServiceStatusApplyConfiguration struct {
Applications map[string]AppStatusApplyConfiguration `json:"applicationStatuses,omitempty"`
RayClusterName *string `json:"rayClusterName,omitempty"`
RayClusterStatus *RayClusterStatusApplyConfiguration `json:"rayClusterStatus,omitempty"`
}
// RayServiceStatusApplyConfiguration constructs an declarative configuration of the RayServiceStatus type for use with
// apply.
func RayServiceStatus() *RayServiceStatusApplyConfiguration {
return &RayServiceStatusApplyConfiguration{}
}
// WithApplications puts the entries into the Applications field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, the entries provided by each call will be put on the Applications field,
// overwriting an existing map entries in Applications field with the same key.
func (b *RayServiceStatusApplyConfiguration) WithApplications(entries map[string]AppStatusApplyConfiguration) *RayServiceStatusApplyConfiguration {
if b.Applications == nil && len(entries) > 0 {
b.Applications = make(map[string]AppStatusApplyConfiguration, len(entries))
}
for k, v := range entries {
b.Applications[k] = v
}
return b
}
// WithRayClusterName sets the RayClusterName 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 RayClusterName field is set to the value of the last call.
func (b *RayServiceStatusApplyConfiguration) WithRayClusterName(value string) *RayServiceStatusApplyConfiguration {
b.RayClusterName = &value
return b
}
// WithRayClusterStatus sets the RayClusterStatus 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 RayClusterStatus field is set to the value of the last call.
func (b *RayServiceStatusApplyConfiguration) WithRayClusterStatus(value *RayClusterStatusApplyConfiguration) *RayServiceStatusApplyConfiguration {
b.RayClusterStatus = value
return b
}