-
Notifications
You must be signed in to change notification settings - Fork 0
/
type-node-ontapi-detail-info.go
84 lines (70 loc) · 2.4 KB
/
type-node-ontapi-detail-info.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
package azgo
import (
"encoding/xml"
"reflect"
log "github.com/sirupsen/logrus"
)
// NodeOntapiDetailInfoType is a structure to represent a node-ontapi-detail-info ZAPI object
type NodeOntapiDetailInfoType struct {
XMLName xml.Name `xml:"node-ontapi-detail-info"`
MajorVersionPtr *int `xml:"major-version"`
MinorVersionPtr *int `xml:"minor-version"`
NodeNamePtr *string `xml:"node-name"`
NodeUuidPtr *string `xml:"node-uuid"`
}
// NewNodeOntapiDetailInfoType is a factory method for creating new instances of NodeOntapiDetailInfoType objects
func NewNodeOntapiDetailInfoType() *NodeOntapiDetailInfoType {
return &NodeOntapiDetailInfoType{}
}
// ToXML converts this object into an xml string representation
func (o *NodeOntapiDetailInfoType) 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 NodeOntapiDetailInfoType) String() string {
return ToString(reflect.ValueOf(o))
}
// MajorVersion is a 'getter' method
func (o *NodeOntapiDetailInfoType) MajorVersion() int {
r := *o.MajorVersionPtr
return r
}
// SetMajorVersion is a fluent style 'setter' method that can be chained
func (o *NodeOntapiDetailInfoType) SetMajorVersion(newValue int) *NodeOntapiDetailInfoType {
o.MajorVersionPtr = &newValue
return o
}
// MinorVersion is a 'getter' method
func (o *NodeOntapiDetailInfoType) MinorVersion() int {
r := *o.MinorVersionPtr
return r
}
// SetMinorVersion is a fluent style 'setter' method that can be chained
func (o *NodeOntapiDetailInfoType) SetMinorVersion(newValue int) *NodeOntapiDetailInfoType {
o.MinorVersionPtr = &newValue
return o
}
// NodeName is a 'getter' method
func (o *NodeOntapiDetailInfoType) NodeName() string {
r := *o.NodeNamePtr
return r
}
// SetNodeName is a fluent style 'setter' method that can be chained
func (o *NodeOntapiDetailInfoType) SetNodeName(newValue string) *NodeOntapiDetailInfoType {
o.NodeNamePtr = &newValue
return o
}
// NodeUuid is a 'getter' method
func (o *NodeOntapiDetailInfoType) NodeUuid() string {
r := *o.NodeUuidPtr
return r
}
// SetNodeUuid is a fluent style 'setter' method that can be chained
func (o *NodeOntapiDetailInfoType) SetNodeUuid(newValue string) *NodeOntapiDetailInfoType {
o.NodeUuidPtr = &newValue
return o
}