-
Notifications
You must be signed in to change notification settings - Fork 0
/
type-aggr-snapmirror-attributes.go
71 lines (59 loc) · 2.44 KB
/
type-aggr-snapmirror-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
package azgo
import (
"encoding/xml"
"reflect"
log "github.com/sirupsen/logrus"
)
// AggrSnapmirrorAttributesType is a structure to represent a aggr-snapmirror-attributes ZAPI object
type AggrSnapmirrorAttributesType struct {
XMLName xml.Name `xml:"aggr-snapmirror-attributes"`
DpSnapmirrorDestinationsPtr *int `xml:"dp-snapmirror-destinations"`
LsSnapmirrorDestinationsPtr *int `xml:"ls-snapmirror-destinations"`
MvSnapmirrorDestinationsPtr *int `xml:"mv-snapmirror-destinations"`
}
// NewAggrSnapmirrorAttributesType is a factory method for creating new instances of AggrSnapmirrorAttributesType objects
func NewAggrSnapmirrorAttributesType() *AggrSnapmirrorAttributesType {
return &AggrSnapmirrorAttributesType{}
}
// ToXML converts this object into an xml string representation
func (o *AggrSnapmirrorAttributesType) 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 AggrSnapmirrorAttributesType) String() string {
return ToString(reflect.ValueOf(o))
}
// DpSnapmirrorDestinations is a 'getter' method
func (o *AggrSnapmirrorAttributesType) DpSnapmirrorDestinations() int {
r := *o.DpSnapmirrorDestinationsPtr
return r
}
// SetDpSnapmirrorDestinations is a fluent style 'setter' method that can be chained
func (o *AggrSnapmirrorAttributesType) SetDpSnapmirrorDestinations(newValue int) *AggrSnapmirrorAttributesType {
o.DpSnapmirrorDestinationsPtr = &newValue
return o
}
// LsSnapmirrorDestinations is a 'getter' method
func (o *AggrSnapmirrorAttributesType) LsSnapmirrorDestinations() int {
r := *o.LsSnapmirrorDestinationsPtr
return r
}
// SetLsSnapmirrorDestinations is a fluent style 'setter' method that can be chained
func (o *AggrSnapmirrorAttributesType) SetLsSnapmirrorDestinations(newValue int) *AggrSnapmirrorAttributesType {
o.LsSnapmirrorDestinationsPtr = &newValue
return o
}
// MvSnapmirrorDestinations is a 'getter' method
func (o *AggrSnapmirrorAttributesType) MvSnapmirrorDestinations() int {
r := *o.MvSnapmirrorDestinationsPtr
return r
}
// SetMvSnapmirrorDestinations is a fluent style 'setter' method that can be chained
func (o *AggrSnapmirrorAttributesType) SetMvSnapmirrorDestinations(newValue int) *AggrSnapmirrorAttributesType {
o.MvSnapmirrorDestinationsPtr = &newValue
return o
}