/
type-volume-performance-attributes.go
123 lines (103 loc) · 4.18 KB
/
type-volume-performance-attributes.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
package azgo
import (
"encoding/xml"
"reflect"
log "github.com/sirupsen/logrus"
)
// VolumePerformanceAttributesType is a structure to represent a volume-performance-attributes ZAPI object
type VolumePerformanceAttributesType struct {
XMLName xml.Name `xml:"volume-performance-attributes"`
ExtentEnabledPtr *string `xml:"extent-enabled"`
FcDelegsEnabledPtr *bool `xml:"fc-delegs-enabled"`
IsAtimeUpdateEnabledPtr *bool `xml:"is-atime-update-enabled"`
MaxWriteAllocBlocksPtr *int `xml:"max-write-alloc-blocks"`
MinimalReadAheadPtr *bool `xml:"minimal-read-ahead"`
ReadReallocPtr *string `xml:"read-realloc"`
SingleInstanceDataLoggingPtr *string `xml:"single-instance-data-logging"`
}
// NewVolumePerformanceAttributesType is a factory method for creating new instances of VolumePerformanceAttributesType objects
func NewVolumePerformanceAttributesType() *VolumePerformanceAttributesType {
return &VolumePerformanceAttributesType{}
}
// ToXML converts this object into an xml string representation
func (o *VolumePerformanceAttributesType) ToXML() (string, error) {
output, err := xml.MarshalIndent(o, " ", " ")
if err != nil {
log.Errorf("error: %v", err)
}
return string(output), err
}
// String returns a string representation of this object's fields and implements the Stringer interface
func (o VolumePerformanceAttributesType) String() string {
return ToString(reflect.ValueOf(o))
}
// ExtentEnabled is a 'getter' method
func (o *VolumePerformanceAttributesType) ExtentEnabled() string {
r := *o.ExtentEnabledPtr
return r
}
// SetExtentEnabled is a fluent style 'setter' method that can be chained
func (o *VolumePerformanceAttributesType) SetExtentEnabled(newValue string) *VolumePerformanceAttributesType {
o.ExtentEnabledPtr = &newValue
return o
}
// FcDelegsEnabled is a 'getter' method
func (o *VolumePerformanceAttributesType) FcDelegsEnabled() bool {
r := *o.FcDelegsEnabledPtr
return r
}
// SetFcDelegsEnabled is a fluent style 'setter' method that can be chained
func (o *VolumePerformanceAttributesType) SetFcDelegsEnabled(newValue bool) *VolumePerformanceAttributesType {
o.FcDelegsEnabledPtr = &newValue
return o
}
// IsAtimeUpdateEnabled is a 'getter' method
func (o *VolumePerformanceAttributesType) IsAtimeUpdateEnabled() bool {
r := *o.IsAtimeUpdateEnabledPtr
return r
}
// SetIsAtimeUpdateEnabled is a fluent style 'setter' method that can be chained
func (o *VolumePerformanceAttributesType) SetIsAtimeUpdateEnabled(newValue bool) *VolumePerformanceAttributesType {
o.IsAtimeUpdateEnabledPtr = &newValue
return o
}
// MaxWriteAllocBlocks is a 'getter' method
func (o *VolumePerformanceAttributesType) MaxWriteAllocBlocks() int {
r := *o.MaxWriteAllocBlocksPtr
return r
}
// SetMaxWriteAllocBlocks is a fluent style 'setter' method that can be chained
func (o *VolumePerformanceAttributesType) SetMaxWriteAllocBlocks(newValue int) *VolumePerformanceAttributesType {
o.MaxWriteAllocBlocksPtr = &newValue
return o
}
// MinimalReadAhead is a 'getter' method
func (o *VolumePerformanceAttributesType) MinimalReadAhead() bool {
r := *o.MinimalReadAheadPtr
return r
}
// SetMinimalReadAhead is a fluent style 'setter' method that can be chained
func (o *VolumePerformanceAttributesType) SetMinimalReadAhead(newValue bool) *VolumePerformanceAttributesType {
o.MinimalReadAheadPtr = &newValue
return o
}
// ReadRealloc is a 'getter' method
func (o *VolumePerformanceAttributesType) ReadRealloc() string {
r := *o.ReadReallocPtr
return r
}
// SetReadRealloc is a fluent style 'setter' method that can be chained
func (o *VolumePerformanceAttributesType) SetReadRealloc(newValue string) *VolumePerformanceAttributesType {
o.ReadReallocPtr = &newValue
return o
}
// SingleInstanceDataLogging is a 'getter' method
func (o *VolumePerformanceAttributesType) SingleInstanceDataLogging() string {
r := *o.SingleInstanceDataLoggingPtr
return r
}
// SetSingleInstanceDataLogging is a fluent style 'setter' method that can be chained
func (o *VolumePerformanceAttributesType) SetSingleInstanceDataLogging(newValue string) *VolumePerformanceAttributesType {
o.SingleInstanceDataLoggingPtr = &newValue
return o
}