ReplicaSet
Last updated
Last updated
Name | Type | Description | Notes |
---|---|---|---|
func NewReplicaSet(displayName string, version string, replicas int32, resources Resources, persistenceMode PersistenceMode, evictionPolicy EvictionPolicy, connections []Connection, credentials User, ) *ReplicaSet
NewReplicaSet instantiates a new ReplicaSet 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 NewReplicaSetWithDefaults() *ReplicaSet
NewReplicaSetWithDefaults instantiates a new ReplicaSet 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 (o *ReplicaSet) GetDisplayName() string
GetDisplayName returns the DisplayName field if non-nil, zero value otherwise.
func (o *ReplicaSet) GetDisplayNameOk() (*string, bool)
GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ReplicaSet) SetDisplayName(v string)
SetDisplayName sets DisplayName field to given value.
func (o *ReplicaSet) GetVersion() string
GetVersion returns the Version field if non-nil, zero value otherwise.
func (o *ReplicaSet) GetVersionOk() (*string, bool)
GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ReplicaSet) SetVersion(v string)
SetVersion sets Version field to given value.
func (o *ReplicaSet) GetReplicas() int32
GetReplicas returns the Replicas field if non-nil, zero value otherwise.
func (o *ReplicaSet) GetReplicasOk() (*int32, bool)
GetReplicasOk returns a tuple with the Replicas field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ReplicaSet) SetReplicas(v int32)
SetReplicas sets Replicas field to given value.
func (o *ReplicaSet) GetResources() Resources
GetResources returns the Resources field if non-nil, zero value otherwise.
func (o *ReplicaSet) GetResourcesOk() (*Resources, bool)
GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ReplicaSet) SetResources(v Resources)
SetResources sets Resources field to given value.
func (o *ReplicaSet) GetPersistenceMode() PersistenceMode
GetPersistenceMode returns the PersistenceMode field if non-nil, zero value otherwise.
func (o *ReplicaSet) GetPersistenceModeOk() (*PersistenceMode, bool)
GetPersistenceModeOk returns a tuple with the PersistenceMode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ReplicaSet) SetPersistenceMode(v PersistenceMode)
SetPersistenceMode sets PersistenceMode field to given value.
func (o *ReplicaSet) GetEvictionPolicy() EvictionPolicy
GetEvictionPolicy returns the EvictionPolicy field if non-nil, zero value otherwise.
func (o *ReplicaSet) GetEvictionPolicyOk() (*EvictionPolicy, bool)
GetEvictionPolicyOk returns a tuple with the EvictionPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ReplicaSet) SetEvictionPolicy(v EvictionPolicy)
SetEvictionPolicy sets EvictionPolicy field to given value.
func (o *ReplicaSet) GetConnections() []Connection
GetConnections returns the Connections field if non-nil, zero value otherwise.
func (o *ReplicaSet) GetConnectionsOk() (*[]Connection, bool)
GetConnectionsOk returns a tuple with the Connections field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ReplicaSet) SetConnections(v []Connection)
SetConnections sets Connections field to given value.
func (o *ReplicaSet) GetMaintenanceWindow() MaintenanceWindow
GetMaintenanceWindow returns the MaintenanceWindow field if non-nil, zero value otherwise.
func (o *ReplicaSet) GetMaintenanceWindowOk() (*MaintenanceWindow, bool)
GetMaintenanceWindowOk returns a tuple with the MaintenanceWindow field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ReplicaSet) SetMaintenanceWindow(v MaintenanceWindow)
SetMaintenanceWindow sets MaintenanceWindow field to given value.
func (o *ReplicaSet) HasMaintenanceWindow() bool
HasMaintenanceWindow returns a boolean if a field has been set.
func (o *ReplicaSet) GetCredentials() User
GetCredentials returns the Credentials field if non-nil, zero value otherwise.
func (o *ReplicaSet) GetCredentialsOk() (*User, bool)
GetCredentialsOk returns a tuple with the Credentials field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ReplicaSet) SetCredentials(v User)
SetCredentials sets Credentials field to given value.
func (o *ReplicaSet) GetInitialSnapshotId() string
GetInitialSnapshotId returns the InitialSnapshotId field if non-nil, zero value otherwise.
func (o *ReplicaSet) GetInitialSnapshotIdOk() (*string, bool)
GetInitialSnapshotIdOk returns a tuple with the InitialSnapshotId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ReplicaSet) SetInitialSnapshotId(v string)
SetInitialSnapshotId sets InitialSnapshotId field to given value.
func (o *ReplicaSet) HasInitialSnapshotId() bool
HasInitialSnapshotId returns a boolean if a field has been set.
DisplayName
string
The human readable name of your replica set.
Version
string
The In-Memory DB version of your replica set.
Replicas
int32
The total number of replicas in the replica set (one active and n-1 passive). In case of a standalone instance, the value is 1. In all other cases, the value is >1. The replicas will not be available as read replicas, they are only standby for a failure of the active instance.
Resources
PersistenceMode
[default to PERSISTENCEMODE_NONE]
EvictionPolicy
[default to EVICTIONPOLICY_ALLKEYS_LRU]
Connections
The network connection for your replica set. Only one connection is allowed.
MaintenanceWindow
Pointer to MaintenanceWindow
[optional]
Credentials
InitialSnapshotId
Pointer to string
The ID of a snapshot to restore the replica set from. If set, the replica set will be created from the snapshot.
[optional]