-
Notifications
You must be signed in to change notification settings - Fork 0
/
ephemeralnetworkinterfacesource.go
30 lines (24 loc) · 1.5 KB
/
ephemeralnetworkinterfacesource.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
// SPDX-FileCopyrightText: 2024 Axel Christ and Spheric contributors
// SPDX-License-Identifier: Apache-2.0
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha1
import (
v1alpha1 "spheric.cloud/spheric/client-go/applyconfigurations/networking/v1alpha1"
)
// EphemeralNetworkInterfaceSourceApplyConfiguration represents an declarative configuration of the EphemeralNetworkInterfaceSource type for use
// with apply.
type EphemeralNetworkInterfaceSourceApplyConfiguration struct {
NetworkInterfaceTemplate *v1alpha1.NetworkInterfaceTemplateSpecApplyConfiguration `json:"networkInterfaceTemplate,omitempty"`
}
// EphemeralNetworkInterfaceSourceApplyConfiguration constructs an declarative configuration of the EphemeralNetworkInterfaceSource type for use with
// apply.
func EphemeralNetworkInterfaceSource() *EphemeralNetworkInterfaceSourceApplyConfiguration {
return &EphemeralNetworkInterfaceSourceApplyConfiguration{}
}
// WithNetworkInterfaceTemplate sets the NetworkInterfaceTemplate 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 NetworkInterfaceTemplate field is set to the value of the last call.
func (b *EphemeralNetworkInterfaceSourceApplyConfiguration) WithNetworkInterfaceTemplate(value *v1alpha1.NetworkInterfaceTemplateSpecApplyConfiguration) *EphemeralNetworkInterfaceSourceApplyConfiguration {
b.NetworkInterfaceTemplate = value
return b
}