ClusterProperties
Last updated
Last updated
Properties of a database cluster.
Name | Type | Description | Notes |
---|---|---|---|
func (o *ClusterProperties) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
func (o *ClusterProperties) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ClusterProperties) SetType(v string)
SetType sets Type field to given value.
func (o *ClusterProperties) HasType() bool
HasType returns a boolean if a field has been set.
func (o *ClusterProperties) GetDisplayName() string
GetDisplayName returns the DisplayName field if non-nil, zero value otherwise.
func (o *ClusterProperties) 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 *ClusterProperties) SetDisplayName(v string)
SetDisplayName sets DisplayName field to given value.
func (o *ClusterProperties) HasDisplayName() bool
HasDisplayName returns a boolean if a field has been set.
func (o *ClusterProperties) GetMongoDBVersion() string
GetMongoDBVersion returns the MongoDBVersion field if non-nil, zero value otherwise.
func (o *ClusterProperties) GetMongoDBVersionOk() (*string, bool)
GetMongoDBVersionOk returns a tuple with the MongoDBVersion field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ClusterProperties) SetMongoDBVersion(v string)
SetMongoDBVersion sets MongoDBVersion field to given value.
func (o *ClusterProperties) HasMongoDBVersion() bool
HasMongoDBVersion returns a boolean if a field has been set.
func (o *ClusterProperties) GetLocation() string
GetLocation returns the Location field if non-nil, zero value otherwise.
func (o *ClusterProperties) GetLocationOk() (*string, bool)
GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ClusterProperties) SetLocation(v string)
SetLocation sets Location field to given value.
func (o *ClusterProperties) HasLocation() bool
HasLocation returns a boolean if a field has been set.
func (o *ClusterProperties) GetBackup() BackupProperties
GetBackup returns the Backup field if non-nil, zero value otherwise.
func (o *ClusterProperties) GetBackupOk() (*BackupProperties, bool)
GetBackupOk returns a tuple with the Backup field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ClusterProperties) SetBackup(v BackupProperties)
SetBackup sets Backup field to given value.
func (o *ClusterProperties) HasBackup() bool
HasBackup returns a boolean if a field has been set.
func (o *ClusterProperties) GetInstances() int32
GetInstances returns the Instances field if non-nil, zero value otherwise.
func (o *ClusterProperties) GetInstancesOk() (*int32, bool)
GetInstancesOk returns a tuple with the Instances field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ClusterProperties) SetInstances(v int32)
SetInstances sets Instances field to given value.
func (o *ClusterProperties) HasInstances() bool
HasInstances returns a boolean if a field has been set.
func (o *ClusterProperties) GetShards() int32
GetShards returns the Shards field if non-nil, zero value otherwise.
func (o *ClusterProperties) GetShardsOk() (*int32, bool)
GetShardsOk returns a tuple with the Shards field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ClusterProperties) SetShards(v int32)
SetShards sets Shards field to given value.
func (o *ClusterProperties) HasShards() bool
HasShards returns a boolean if a field has been set.
func (o *ClusterProperties) GetConnections() []Connection
GetConnections returns the Connections field if non-nil, zero value otherwise.
func (o *ClusterProperties) 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 *ClusterProperties) SetConnections(v []Connection)
SetConnections sets Connections field to given value.
func (o *ClusterProperties) HasConnections() bool
HasConnections returns a boolean if a field has been set.
func (o *ClusterProperties) GetMaintenanceWindow() MaintenanceWindow
GetMaintenanceWindow returns the MaintenanceWindow field if non-nil, zero value otherwise.
func (o *ClusterProperties) 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 *ClusterProperties) SetMaintenanceWindow(v MaintenanceWindow)
SetMaintenanceWindow sets MaintenanceWindow field to given value.
func (o *ClusterProperties) HasMaintenanceWindow() bool
HasMaintenanceWindow returns a boolean if a field has been set.
func (o *ClusterProperties) GetTemplateID() string
GetTemplateID returns the TemplateID field if non-nil, zero value otherwise.
func (o *ClusterProperties) GetTemplateIDOk() (*string, bool)
GetTemplateIDOk returns a tuple with the TemplateID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ClusterProperties) SetTemplateID(v string)
SetTemplateID sets TemplateID field to given value.
func (o *ClusterProperties) HasTemplateID() bool
HasTemplateID returns a boolean if a field has been set.
func (o *ClusterProperties) GetConnectionString() string
GetConnectionString returns the ConnectionString field if non-nil, zero value otherwise.
func (o *ClusterProperties) GetConnectionStringOk() (*string, bool)
GetConnectionStringOk returns a tuple with the ConnectionString field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ClusterProperties) SetConnectionString(v string)
SetConnectionString sets ConnectionString field to given value.
func (o *ClusterProperties) HasConnectionString() bool
HasConnectionString returns a boolean if a field has been set.
func (o *ClusterProperties) GetBiConnector() BiConnectorProperties
GetBiConnector returns the BiConnector field if non-nil, zero value otherwise.
func (o *ClusterProperties) GetBiConnectorOk() (*BiConnectorProperties, bool)
GetBiConnectorOk returns a tuple with the BiConnector field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ClusterProperties) SetBiConnector(v BiConnectorProperties)
SetBiConnector sets BiConnector field to given value.
func (o *ClusterProperties) HasBiConnector() bool
HasBiConnector returns a boolean if a field has been set.
func (o *ClusterProperties) GetEdition() string
GetEdition returns the Edition field if non-nil, zero value otherwise.
func (o *ClusterProperties) GetEditionOk() (*string, bool)
GetEditionOk returns a tuple with the Edition field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ClusterProperties) SetEdition(v string)
SetEdition sets Edition field to given value.
func (o *ClusterProperties) HasEdition() bool
HasEdition returns a boolean if a field has been set.
func (o *ClusterProperties) GetCores() int32
GetCores returns the Cores field if non-nil, zero value otherwise.
func (o *ClusterProperties) GetCoresOk() (*int32, bool)
GetCoresOk returns a tuple with the Cores field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ClusterProperties) SetCores(v int32)
SetCores sets Cores field to given value.
func (o *ClusterProperties) HasCores() bool
HasCores returns a boolean if a field has been set.
func (o *ClusterProperties) GetRam() int32
GetRam returns the Ram field if non-nil, zero value otherwise.
func (o *ClusterProperties) GetRamOk() (*int32, bool)
GetRamOk returns a tuple with the Ram field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ClusterProperties) SetRam(v int32)
SetRam sets Ram field to given value.
func (o *ClusterProperties) HasRam() bool
HasRam returns a boolean if a field has been set.
func (o *ClusterProperties) GetStorageSize() int32
GetStorageSize returns the StorageSize field if non-nil, zero value otherwise.
func (o *ClusterProperties) GetStorageSizeOk() (*int32, bool)
GetStorageSizeOk returns a tuple with the StorageSize field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ClusterProperties) SetStorageSize(v int32)
SetStorageSize sets StorageSize field to given value.
func (o *ClusterProperties) HasStorageSize() bool
HasStorageSize returns a boolean if a field has been set.
func (o *ClusterProperties) GetStorageType() StorageType
GetStorageType returns the StorageType field if non-nil, zero value otherwise.
func (o *ClusterProperties) GetStorageTypeOk() (*StorageType, bool)
GetStorageTypeOk returns a tuple with the StorageType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ClusterProperties) SetStorageType(v StorageType)
SetStorageType sets StorageType field to given value.
func (o *ClusterProperties) HasStorageType() bool
HasStorageType returns a boolean if a field has been set.
Type
Pointer to string
The cluster type, either `replicaset` or `sharded-cluster`.
[optional]
DisplayName
Pointer to string
The name of your cluster.
[optional]
MongoDBVersion
Pointer to string
The MongoDB version of your cluster.
[optional]
Location
Pointer to string
The physical location where the cluster will be created. This is the location where all your instances will be located. This property is immutable.
[optional]
Backup
Pointer to BackupProperties
[optional]
Instances
Pointer to int32
The total number of instances in the cluster (one primary and n-1 secondaries).
[optional]
Shards
Pointer to int32
The total number of shards in the cluster.
[optional]
Connections
Pointer to []Connection
[optional]
MaintenanceWindow
Pointer to MaintenanceWindow
[optional]
TemplateID
Pointer to string
The unique ID of the template, which specifies the number of cores, storage size, and memory. You cannot downgrade to a smaller template or minor edition (e.g. from business to playground). To get a list of all templates to confirm the changes use the /templates endpoint.
[optional]
ConnectionString
Pointer to string
The connection string for your cluster.
[optional]
BiConnector
Pointer to BiConnectorProperties
[optional]
Edition
Pointer to string
The cluster edition.
[optional]
Cores
Pointer to int32
The number of CPU cores per instance.
[optional]
Ram
Pointer to int32
The amount of memory per instance in megabytes. Has to be a multiple of 1024.
[optional]
StorageSize
Pointer to int32
The amount of storage per instance in megabytes.
[optional]
StorageType
Pointer to StorageType
[optional]