...

Source file src/k8s.io/client-go/applyconfigurations/core/v1/scaleiopersistentvolumesource.go

Documentation: k8s.io/client-go/applyconfigurations/core/v1

     1  /*
     2  Copyright The Kubernetes Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  // Code generated by applyconfiguration-gen. DO NOT EDIT.
    18  
    19  package v1
    20  
    21  // ScaleIOPersistentVolumeSourceApplyConfiguration represents an declarative configuration of the ScaleIOPersistentVolumeSource type for use
    22  // with apply.
    23  type ScaleIOPersistentVolumeSourceApplyConfiguration struct {
    24  	Gateway          *string                            `json:"gateway,omitempty"`
    25  	System           *string                            `json:"system,omitempty"`
    26  	SecretRef        *SecretReferenceApplyConfiguration `json:"secretRef,omitempty"`
    27  	SSLEnabled       *bool                              `json:"sslEnabled,omitempty"`
    28  	ProtectionDomain *string                            `json:"protectionDomain,omitempty"`
    29  	StoragePool      *string                            `json:"storagePool,omitempty"`
    30  	StorageMode      *string                            `json:"storageMode,omitempty"`
    31  	VolumeName       *string                            `json:"volumeName,omitempty"`
    32  	FSType           *string                            `json:"fsType,omitempty"`
    33  	ReadOnly         *bool                              `json:"readOnly,omitempty"`
    34  }
    35  
    36  // ScaleIOPersistentVolumeSourceApplyConfiguration constructs an declarative configuration of the ScaleIOPersistentVolumeSource type for use with
    37  // apply.
    38  func ScaleIOPersistentVolumeSource() *ScaleIOPersistentVolumeSourceApplyConfiguration {
    39  	return &ScaleIOPersistentVolumeSourceApplyConfiguration{}
    40  }
    41  
    42  // WithGateway sets the Gateway field in the declarative configuration to the given value
    43  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    44  // If called multiple times, the Gateway field is set to the value of the last call.
    45  func (b *ScaleIOPersistentVolumeSourceApplyConfiguration) WithGateway(value string) *ScaleIOPersistentVolumeSourceApplyConfiguration {
    46  	b.Gateway = &value
    47  	return b
    48  }
    49  
    50  // WithSystem sets the System field in the declarative configuration to the given value
    51  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    52  // If called multiple times, the System field is set to the value of the last call.
    53  func (b *ScaleIOPersistentVolumeSourceApplyConfiguration) WithSystem(value string) *ScaleIOPersistentVolumeSourceApplyConfiguration {
    54  	b.System = &value
    55  	return b
    56  }
    57  
    58  // WithSecretRef sets the SecretRef field in the declarative configuration to the given value
    59  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    60  // If called multiple times, the SecretRef field is set to the value of the last call.
    61  func (b *ScaleIOPersistentVolumeSourceApplyConfiguration) WithSecretRef(value *SecretReferenceApplyConfiguration) *ScaleIOPersistentVolumeSourceApplyConfiguration {
    62  	b.SecretRef = value
    63  	return b
    64  }
    65  
    66  // WithSSLEnabled sets the SSLEnabled field in the declarative configuration to the given value
    67  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    68  // If called multiple times, the SSLEnabled field is set to the value of the last call.
    69  func (b *ScaleIOPersistentVolumeSourceApplyConfiguration) WithSSLEnabled(value bool) *ScaleIOPersistentVolumeSourceApplyConfiguration {
    70  	b.SSLEnabled = &value
    71  	return b
    72  }
    73  
    74  // WithProtectionDomain sets the ProtectionDomain field in the declarative configuration to the given value
    75  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    76  // If called multiple times, the ProtectionDomain field is set to the value of the last call.
    77  func (b *ScaleIOPersistentVolumeSourceApplyConfiguration) WithProtectionDomain(value string) *ScaleIOPersistentVolumeSourceApplyConfiguration {
    78  	b.ProtectionDomain = &value
    79  	return b
    80  }
    81  
    82  // WithStoragePool sets the StoragePool field in the declarative configuration to the given value
    83  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    84  // If called multiple times, the StoragePool field is set to the value of the last call.
    85  func (b *ScaleIOPersistentVolumeSourceApplyConfiguration) WithStoragePool(value string) *ScaleIOPersistentVolumeSourceApplyConfiguration {
    86  	b.StoragePool = &value
    87  	return b
    88  }
    89  
    90  // WithStorageMode sets the StorageMode field in the declarative configuration to the given value
    91  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    92  // If called multiple times, the StorageMode field is set to the value of the last call.
    93  func (b *ScaleIOPersistentVolumeSourceApplyConfiguration) WithStorageMode(value string) *ScaleIOPersistentVolumeSourceApplyConfiguration {
    94  	b.StorageMode = &value
    95  	return b
    96  }
    97  
    98  // WithVolumeName sets the VolumeName field in the declarative configuration to the given value
    99  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   100  // If called multiple times, the VolumeName field is set to the value of the last call.
   101  func (b *ScaleIOPersistentVolumeSourceApplyConfiguration) WithVolumeName(value string) *ScaleIOPersistentVolumeSourceApplyConfiguration {
   102  	b.VolumeName = &value
   103  	return b
   104  }
   105  
   106  // WithFSType sets the FSType field in the declarative configuration to the given value
   107  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   108  // If called multiple times, the FSType field is set to the value of the last call.
   109  func (b *ScaleIOPersistentVolumeSourceApplyConfiguration) WithFSType(value string) *ScaleIOPersistentVolumeSourceApplyConfiguration {
   110  	b.FSType = &value
   111  	return b
   112  }
   113  
   114  // WithReadOnly sets the ReadOnly field in the declarative configuration to the given value
   115  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   116  // If called multiple times, the ReadOnly field is set to the value of the last call.
   117  func (b *ScaleIOPersistentVolumeSourceApplyConfiguration) WithReadOnly(value bool) *ScaleIOPersistentVolumeSourceApplyConfiguration {
   118  	b.ReadOnly = &value
   119  	return b
   120  }
   121  

View as plain text