/
model_disk_backup_sharded_cluster_snapshot_member.go
124 lines (106 loc) · 3.9 KB
/
model_disk_backup_sharded_cluster_snapshot_member.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
124
// Code based on the AtlasAPI V2 OpenAPI file
package admin
import (
"encoding/json"
)
// DiskBackupShardedClusterSnapshotMember struct for DiskBackupShardedClusterSnapshotMember
type DiskBackupShardedClusterSnapshotMember struct {
// Human-readable label that identifies the cloud provider that stores this snapshot. The resource returns this parameter when `\"type\": \"replicaSet\"`.
// Read only field.
CloudProvider string `json:"cloudProvider"`
// Unique 24-hexadecimal digit string that identifies the snapshot.
// Read only field.
Id string `json:"id"`
// Human-readable label that identifies the shard or config host from which MongoDB Cloud took this snapshot.
// Read only field.
ReplicaSetName string `json:"replicaSetName"`
}
// NewDiskBackupShardedClusterSnapshotMember instantiates a new DiskBackupShardedClusterSnapshotMember object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewDiskBackupShardedClusterSnapshotMember(cloudProvider string, id string, replicaSetName string) *DiskBackupShardedClusterSnapshotMember {
this := DiskBackupShardedClusterSnapshotMember{}
this.CloudProvider = cloudProvider
this.Id = id
this.ReplicaSetName = replicaSetName
return &this
}
// NewDiskBackupShardedClusterSnapshotMemberWithDefaults instantiates a new DiskBackupShardedClusterSnapshotMember object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewDiskBackupShardedClusterSnapshotMemberWithDefaults() *DiskBackupShardedClusterSnapshotMember {
this := DiskBackupShardedClusterSnapshotMember{}
return &this
}
// GetCloudProvider returns the CloudProvider field value
func (o *DiskBackupShardedClusterSnapshotMember) GetCloudProvider() string {
if o == nil {
var ret string
return ret
}
return o.CloudProvider
}
// GetCloudProviderOk returns a tuple with the CloudProvider field value
// and a boolean to check if the value has been set.
func (o *DiskBackupShardedClusterSnapshotMember) GetCloudProviderOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.CloudProvider, true
}
// SetCloudProvider sets field value
func (o *DiskBackupShardedClusterSnapshotMember) SetCloudProvider(v string) {
o.CloudProvider = v
}
// GetId returns the Id field value
func (o *DiskBackupShardedClusterSnapshotMember) GetId() string {
if o == nil {
var ret string
return ret
}
return o.Id
}
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
func (o *DiskBackupShardedClusterSnapshotMember) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Id, true
}
// SetId sets field value
func (o *DiskBackupShardedClusterSnapshotMember) SetId(v string) {
o.Id = v
}
// GetReplicaSetName returns the ReplicaSetName field value
func (o *DiskBackupShardedClusterSnapshotMember) GetReplicaSetName() string {
if o == nil {
var ret string
return ret
}
return o.ReplicaSetName
}
// GetReplicaSetNameOk returns a tuple with the ReplicaSetName field value
// and a boolean to check if the value has been set.
func (o *DiskBackupShardedClusterSnapshotMember) GetReplicaSetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ReplicaSetName, true
}
// SetReplicaSetName sets field value
func (o *DiskBackupShardedClusterSnapshotMember) SetReplicaSetName(v string) {
o.ReplicaSetName = v
}
func (o DiskBackupShardedClusterSnapshotMember) MarshalJSONWithoutReadOnly() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o DiskBackupShardedClusterSnapshotMember) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
return toSerialize, nil
}