-
Notifications
You must be signed in to change notification settings - Fork 88
/
fabricgatewayapi.go
57 lines (50 loc) · 2.53 KB
/
fabricgatewayapi.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
56
57
/*
* Copyright Kungfusoftware.es. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha1
// FabricGatewayApiApplyConfiguration represents an declarative configuration of the FabricGatewayApi type for use
// with apply.
type FabricGatewayApiApplyConfiguration struct {
Port *int `json:"port,omitempty"`
Hosts []string `json:"hosts,omitempty"`
GatewayName *string `json:"gatewayName,omitempty"`
GatewayNamespace *string `json:"gatewayNamespace,omitempty"`
}
// FabricGatewayApiApplyConfiguration constructs an declarative configuration of the FabricGatewayApi type for use with
// apply.
func FabricGatewayApi() *FabricGatewayApiApplyConfiguration {
return &FabricGatewayApiApplyConfiguration{}
}
// 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 *FabricGatewayApiApplyConfiguration) WithPort(value int) *FabricGatewayApiApplyConfiguration {
b.Port = &value
return b
}
// WithHosts adds the given value to the Hosts 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 Hosts field.
func (b *FabricGatewayApiApplyConfiguration) WithHosts(values ...string) *FabricGatewayApiApplyConfiguration {
for i := range values {
b.Hosts = append(b.Hosts, values[i])
}
return b
}
// WithGatewayName sets the GatewayName 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 GatewayName field is set to the value of the last call.
func (b *FabricGatewayApiApplyConfiguration) WithGatewayName(value string) *FabricGatewayApiApplyConfiguration {
b.GatewayName = &value
return b
}
// WithGatewayNamespace sets the GatewayNamespace 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 GatewayNamespace field is set to the value of the last call.
func (b *FabricGatewayApiApplyConfiguration) WithGatewayNamespace(value string) *FabricGatewayApiApplyConfiguration {
b.GatewayNamespace = &value
return b
}