/
type-volume-sis-attributes.go
162 lines (136 loc) · 5.63 KB
/
type-volume-sis-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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
package azgo
import (
"encoding/xml"
"reflect"
log "github.com/sirupsen/logrus"
)
// VolumeSisAttributesType is a structure to represent a volume-sis-attributes ZAPI object
type VolumeSisAttributesType struct {
XMLName xml.Name `xml:"volume-sis-attributes"`
CompressionSpaceSavedPtr *int `xml:"compression-space-saved"`
DeduplicationSpaceSavedPtr *int `xml:"deduplication-space-saved"`
DeduplicationSpaceSharedPtr *SizeType `xml:"deduplication-space-shared"`
IsSisLoggingEnabledPtr *bool `xml:"is-sis-logging-enabled"`
IsSisStateEnabledPtr *bool `xml:"is-sis-state-enabled"`
IsSisVolumePtr *bool `xml:"is-sis-volume"`
PercentageCompressionSpaceSavedPtr *int `xml:"percentage-compression-space-saved"`
PercentageDeduplicationSpaceSavedPtr *int `xml:"percentage-deduplication-space-saved"`
PercentageTotalSpaceSavedPtr *int `xml:"percentage-total-space-saved"`
TotalSpaceSavedPtr *int `xml:"total-space-saved"`
}
// NewVolumeSisAttributesType is a factory method for creating new instances of VolumeSisAttributesType objects
func NewVolumeSisAttributesType() *VolumeSisAttributesType {
return &VolumeSisAttributesType{}
}
// ToXML converts this object into an xml string representation
func (o *VolumeSisAttributesType) 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 VolumeSisAttributesType) String() string {
return ToString(reflect.ValueOf(o))
}
// CompressionSpaceSaved is a 'getter' method
func (o *VolumeSisAttributesType) CompressionSpaceSaved() int {
r := *o.CompressionSpaceSavedPtr
return r
}
// SetCompressionSpaceSaved is a fluent style 'setter' method that can be chained
func (o *VolumeSisAttributesType) SetCompressionSpaceSaved(newValue int) *VolumeSisAttributesType {
o.CompressionSpaceSavedPtr = &newValue
return o
}
// DeduplicationSpaceSaved is a 'getter' method
func (o *VolumeSisAttributesType) DeduplicationSpaceSaved() int {
r := *o.DeduplicationSpaceSavedPtr
return r
}
// SetDeduplicationSpaceSaved is a fluent style 'setter' method that can be chained
func (o *VolumeSisAttributesType) SetDeduplicationSpaceSaved(newValue int) *VolumeSisAttributesType {
o.DeduplicationSpaceSavedPtr = &newValue
return o
}
// DeduplicationSpaceShared is a 'getter' method
func (o *VolumeSisAttributesType) DeduplicationSpaceShared() SizeType {
r := *o.DeduplicationSpaceSharedPtr
return r
}
// SetDeduplicationSpaceShared is a fluent style 'setter' method that can be chained
func (o *VolumeSisAttributesType) SetDeduplicationSpaceShared(newValue SizeType) *VolumeSisAttributesType {
o.DeduplicationSpaceSharedPtr = &newValue
return o
}
// IsSisLoggingEnabled is a 'getter' method
func (o *VolumeSisAttributesType) IsSisLoggingEnabled() bool {
r := *o.IsSisLoggingEnabledPtr
return r
}
// SetIsSisLoggingEnabled is a fluent style 'setter' method that can be chained
func (o *VolumeSisAttributesType) SetIsSisLoggingEnabled(newValue bool) *VolumeSisAttributesType {
o.IsSisLoggingEnabledPtr = &newValue
return o
}
// IsSisStateEnabled is a 'getter' method
func (o *VolumeSisAttributesType) IsSisStateEnabled() bool {
r := *o.IsSisStateEnabledPtr
return r
}
// SetIsSisStateEnabled is a fluent style 'setter' method that can be chained
func (o *VolumeSisAttributesType) SetIsSisStateEnabled(newValue bool) *VolumeSisAttributesType {
o.IsSisStateEnabledPtr = &newValue
return o
}
// IsSisVolume is a 'getter' method
func (o *VolumeSisAttributesType) IsSisVolume() bool {
r := *o.IsSisVolumePtr
return r
}
// SetIsSisVolume is a fluent style 'setter' method that can be chained
func (o *VolumeSisAttributesType) SetIsSisVolume(newValue bool) *VolumeSisAttributesType {
o.IsSisVolumePtr = &newValue
return o
}
// PercentageCompressionSpaceSaved is a 'getter' method
func (o *VolumeSisAttributesType) PercentageCompressionSpaceSaved() int {
r := *o.PercentageCompressionSpaceSavedPtr
return r
}
// SetPercentageCompressionSpaceSaved is a fluent style 'setter' method that can be chained
func (o *VolumeSisAttributesType) SetPercentageCompressionSpaceSaved(newValue int) *VolumeSisAttributesType {
o.PercentageCompressionSpaceSavedPtr = &newValue
return o
}
// PercentageDeduplicationSpaceSaved is a 'getter' method
func (o *VolumeSisAttributesType) PercentageDeduplicationSpaceSaved() int {
r := *o.PercentageDeduplicationSpaceSavedPtr
return r
}
// SetPercentageDeduplicationSpaceSaved is a fluent style 'setter' method that can be chained
func (o *VolumeSisAttributesType) SetPercentageDeduplicationSpaceSaved(newValue int) *VolumeSisAttributesType {
o.PercentageDeduplicationSpaceSavedPtr = &newValue
return o
}
// PercentageTotalSpaceSaved is a 'getter' method
func (o *VolumeSisAttributesType) PercentageTotalSpaceSaved() int {
r := *o.PercentageTotalSpaceSavedPtr
return r
}
// SetPercentageTotalSpaceSaved is a fluent style 'setter' method that can be chained
func (o *VolumeSisAttributesType) SetPercentageTotalSpaceSaved(newValue int) *VolumeSisAttributesType {
o.PercentageTotalSpaceSavedPtr = &newValue
return o
}
// TotalSpaceSaved is a 'getter' method
func (o *VolumeSisAttributesType) TotalSpaceSaved() int {
r := *o.TotalSpaceSavedPtr
return r
}
// SetTotalSpaceSaved is a fluent style 'setter' method that can be chained
func (o *VolumeSisAttributesType) SetTotalSpaceSaved(newValue int) *VolumeSisAttributesType {
o.TotalSpaceSavedPtr = &newValue
return o
}