-
Notifications
You must be signed in to change notification settings - Fork 0
/
type-node-version-detail-info.go
84 lines (70 loc) · 2.42 KB
/
type-node-version-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"
)
// NodeVersionDetailInfoType is a structure to represent a node-version-detail-info ZAPI object
type NodeVersionDetailInfoType struct {
XMLName xml.Name `xml:"node-version-detail-info"`
BuildTimestampPtr *int `xml:"build-timestamp"`
NodeNamePtr *string `xml:"node-name"`
NodeUuidPtr *string `xml:"node-uuid"`
VersionPtr *string `xml:"version"`
}
// NewNodeVersionDetailInfoType is a factory method for creating new instances of NodeVersionDetailInfoType objects
func NewNodeVersionDetailInfoType() *NodeVersionDetailInfoType {
return &NodeVersionDetailInfoType{}
}
// ToXML converts this object into an xml string representation
func (o *NodeVersionDetailInfoType) 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 NodeVersionDetailInfoType) String() string {
return ToString(reflect.ValueOf(o))
}
// BuildTimestamp is a 'getter' method
func (o *NodeVersionDetailInfoType) BuildTimestamp() int {
r := *o.BuildTimestampPtr
return r
}
// SetBuildTimestamp is a fluent style 'setter' method that can be chained
func (o *NodeVersionDetailInfoType) SetBuildTimestamp(newValue int) *NodeVersionDetailInfoType {
o.BuildTimestampPtr = &newValue
return o
}
// NodeName is a 'getter' method
func (o *NodeVersionDetailInfoType) NodeName() string {
r := *o.NodeNamePtr
return r
}
// SetNodeName is a fluent style 'setter' method that can be chained
func (o *NodeVersionDetailInfoType) SetNodeName(newValue string) *NodeVersionDetailInfoType {
o.NodeNamePtr = &newValue
return o
}
// NodeUuid is a 'getter' method
func (o *NodeVersionDetailInfoType) NodeUuid() string {
r := *o.NodeUuidPtr
return r
}
// SetNodeUuid is a fluent style 'setter' method that can be chained
func (o *NodeVersionDetailInfoType) SetNodeUuid(newValue string) *NodeVersionDetailInfoType {
o.NodeUuidPtr = &newValue
return o
}
// Version is a 'getter' method
func (o *NodeVersionDetailInfoType) Version() string {
r := *o.VersionPtr
return r
}
// SetVersion is a fluent style 'setter' method that can be chained
func (o *NodeVersionDetailInfoType) SetVersion(newValue string) *NodeVersionDetailInfoType {
o.VersionPtr = &newValue
return o
}