-
Notifications
You must be signed in to change notification settings - Fork 0
/
type-volume-clone-parent-attributes.go
123 lines (103 loc) · 3.69 KB
/
type-volume-clone-parent-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"
)
// VolumeCloneParentAttributesType is a structure to represent a volume-clone-parent-attributes ZAPI object
type VolumeCloneParentAttributesType struct {
XMLName xml.Name `xml:"volume-clone-parent-attributes"`
DsidPtr *int `xml:"dsid"`
MsidPtr *int `xml:"msid"`
NamePtr *VolumeNameType `xml:"name"`
SnapshotIdPtr *int `xml:"snapshot-id"`
SnapshotNamePtr *string `xml:"snapshot-name"`
UuidPtr *UuidType `xml:"uuid"`
VserverNamePtr *VserverNameType `xml:"vserver-name"`
}
// NewVolumeCloneParentAttributesType is a factory method for creating new instances of VolumeCloneParentAttributesType objects
func NewVolumeCloneParentAttributesType() *VolumeCloneParentAttributesType {
return &VolumeCloneParentAttributesType{}
}
// ToXML converts this object into an xml string representation
func (o *VolumeCloneParentAttributesType) 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 VolumeCloneParentAttributesType) String() string {
return ToString(reflect.ValueOf(o))
}
// Dsid is a 'getter' method
func (o *VolumeCloneParentAttributesType) Dsid() int {
r := *o.DsidPtr
return r
}
// SetDsid is a fluent style 'setter' method that can be chained
func (o *VolumeCloneParentAttributesType) SetDsid(newValue int) *VolumeCloneParentAttributesType {
o.DsidPtr = &newValue
return o
}
// Msid is a 'getter' method
func (o *VolumeCloneParentAttributesType) Msid() int {
r := *o.MsidPtr
return r
}
// SetMsid is a fluent style 'setter' method that can be chained
func (o *VolumeCloneParentAttributesType) SetMsid(newValue int) *VolumeCloneParentAttributesType {
o.MsidPtr = &newValue
return o
}
// Name is a 'getter' method
func (o *VolumeCloneParentAttributesType) Name() VolumeNameType {
r := *o.NamePtr
return r
}
// SetName is a fluent style 'setter' method that can be chained
func (o *VolumeCloneParentAttributesType) SetName(newValue VolumeNameType) *VolumeCloneParentAttributesType {
o.NamePtr = &newValue
return o
}
// SnapshotId is a 'getter' method
func (o *VolumeCloneParentAttributesType) SnapshotId() int {
r := *o.SnapshotIdPtr
return r
}
// SetSnapshotId is a fluent style 'setter' method that can be chained
func (o *VolumeCloneParentAttributesType) SetSnapshotId(newValue int) *VolumeCloneParentAttributesType {
o.SnapshotIdPtr = &newValue
return o
}
// SnapshotName is a 'getter' method
func (o *VolumeCloneParentAttributesType) SnapshotName() string {
r := *o.SnapshotNamePtr
return r
}
// SetSnapshotName is a fluent style 'setter' method that can be chained
func (o *VolumeCloneParentAttributesType) SetSnapshotName(newValue string) *VolumeCloneParentAttributesType {
o.SnapshotNamePtr = &newValue
return o
}
// Uuid is a 'getter' method
func (o *VolumeCloneParentAttributesType) Uuid() UuidType {
r := *o.UuidPtr
return r
}
// SetUuid is a fluent style 'setter' method that can be chained
func (o *VolumeCloneParentAttributesType) SetUuid(newValue UuidType) *VolumeCloneParentAttributesType {
o.UuidPtr = &newValue
return o
}
// VserverName is a 'getter' method
func (o *VolumeCloneParentAttributesType) VserverName() VserverNameType {
r := *o.VserverNamePtr
return r
}
// SetVserverName is a fluent style 'setter' method that can be chained
func (o *VolumeCloneParentAttributesType) SetVserverName(newValue VserverNameType) *VolumeCloneParentAttributesType {
o.VserverNamePtr = &newValue
return o
}