-
Notifications
You must be signed in to change notification settings - Fork 0
/
type-show-aggregates.go
97 lines (81 loc) · 2.83 KB
/
type-show-aggregates.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
package azgo
import (
"encoding/xml"
"reflect"
log "github.com/sirupsen/logrus"
)
// ShowAggregatesType is a structure to represent a show-aggregates ZAPI object
type ShowAggregatesType struct {
XMLName xml.Name `xml:"show-aggregates"`
AggregateNamePtr *AggrNameType `xml:"aggregate-name"`
AggregateTypePtr *AggregatetypeType `xml:"aggregate-type"`
AvailableSizePtr *SizeType `xml:"available-size"`
SnaplockTypePtr *SnaplocktypeType `xml:"snaplock-type"`
VserverNamePtr *string `xml:"vserver-name"`
}
// NewShowAggregatesType is a factory method for creating new instances of ShowAggregatesType objects
func NewShowAggregatesType() *ShowAggregatesType {
return &ShowAggregatesType{}
}
// ToXML converts this object into an xml string representation
func (o *ShowAggregatesType) 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 ShowAggregatesType) String() string {
return ToString(reflect.ValueOf(o))
}
// AggregateName is a 'getter' method
func (o *ShowAggregatesType) AggregateName() AggrNameType {
r := *o.AggregateNamePtr
return r
}
// SetAggregateName is a fluent style 'setter' method that can be chained
func (o *ShowAggregatesType) SetAggregateName(newValue AggrNameType) *ShowAggregatesType {
o.AggregateNamePtr = &newValue
return o
}
// AggregateType is a 'getter' method
func (o *ShowAggregatesType) AggregateType() AggregatetypeType {
r := *o.AggregateTypePtr
return r
}
// SetAggregateType is a fluent style 'setter' method that can be chained
func (o *ShowAggregatesType) SetAggregateType(newValue AggregatetypeType) *ShowAggregatesType {
o.AggregateTypePtr = &newValue
return o
}
// AvailableSize is a 'getter' method
func (o *ShowAggregatesType) AvailableSize() SizeType {
r := *o.AvailableSizePtr
return r
}
// SetAvailableSize is a fluent style 'setter' method that can be chained
func (o *ShowAggregatesType) SetAvailableSize(newValue SizeType) *ShowAggregatesType {
o.AvailableSizePtr = &newValue
return o
}
// SnaplockType is a 'getter' method
func (o *ShowAggregatesType) SnaplockType() SnaplocktypeType {
r := *o.SnaplockTypePtr
return r
}
// SetSnaplockType is a fluent style 'setter' method that can be chained
func (o *ShowAggregatesType) SetSnaplockType(newValue SnaplocktypeType) *ShowAggregatesType {
o.SnaplockTypePtr = &newValue
return o
}
// VserverName is a 'getter' method
func (o *ShowAggregatesType) VserverName() string {
r := *o.VserverNamePtr
return r
}
// SetVserverName is a fluent style 'setter' method that can be chained
func (o *ShowAggregatesType) SetVserverName(newValue string) *ShowAggregatesType {
o.VserverNamePtr = &newValue
return o
}