forked from openshift/client-go
/
deploymentcause.go
36 lines (30 loc) · 1.57 KB
/
deploymentcause.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
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1
import (
v1 "github.com/openshift/api/apps/v1"
)
// DeploymentCauseApplyConfiguration represents an declarative configuration of the DeploymentCause type for use
// with apply.
type DeploymentCauseApplyConfiguration struct {
Type *v1.DeploymentTriggerType `json:"type,omitempty"`
ImageTrigger *DeploymentCauseImageTriggerApplyConfiguration `json:"imageTrigger,omitempty"`
}
// DeploymentCauseApplyConfiguration constructs an declarative configuration of the DeploymentCause type for use with
// apply.
func DeploymentCause() *DeploymentCauseApplyConfiguration {
return &DeploymentCauseApplyConfiguration{}
}
// WithType sets the Type 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 Type field is set to the value of the last call.
func (b *DeploymentCauseApplyConfiguration) WithType(value v1.DeploymentTriggerType) *DeploymentCauseApplyConfiguration {
b.Type = &value
return b
}
// WithImageTrigger sets the ImageTrigger 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 ImageTrigger field is set to the value of the last call.
func (b *DeploymentCauseApplyConfiguration) WithImageTrigger(value *DeploymentCauseImageTriggerApplyConfiguration) *DeploymentCauseApplyConfiguration {
b.ImageTrigger = value
return b
}