CreateClusterProperties
Name | Type | Description | Notes |
---|---|---|---|
PostgresVersion | string | The PostgreSQL version of your cluster. | |
Instances | int32 | The total number of instances in the cluster (one master and n-1 standbys). | |
Cores | int32 | The number of CPU cores per instance. | |
Ram | int32 | The amount of memory per instance in megabytes. Has to be a multiple of 1024. | |
StorageSize | int32 | The amount of storage per instance in megabytes. | |
StorageType | | | |
Connections | | | |
Location | string | The physical location where the cluster will be created. This will be where all of your instances live. Property cannot be modified after datacenter creation. | |
BackupLocation | Pointer to string | The S3 location where the backups will be stored. | [optional] |
DisplayName | string | The friendly name of your cluster. | |
MaintenanceWindow | | [optional] | |
Credentials | | | |
SynchronizationMode | | | |
FromBackup | | [optional] |
func NewCreateClusterProperties(postgresVersion string, instances int32, cores int32, ram int32, storageSize int32, storageType StorageType, connections []Connection, location string, displayName string, credentials DBUser, synchronizationMode SynchronizationMode, ) *CreateClusterProperties
NewCreateClusterProperties instantiates a new CreateClusterProperties 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 NewCreateClusterPropertiesWithDefaults() *CreateClusterProperties
NewCreateClusterPropertiesWithDefaults instantiates a new CreateClusterProperties 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 *CreateClusterProperties) GetPostgresVersion() string
GetPostgresVersion returns the PostgresVersion field if non-nil, zero value otherwise.
func (o *CreateClusterProperties) GetPostgresVersionOk() (*string, bool)
GetPostgresVersionOk returns a tuple with the PostgresVersion field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateClusterProperties) SetPostgresVersion(v string)
SetPostgresVersion sets PostgresVersion field to given value.
func (o *CreateClusterProperties) GetInstances() int32
GetInstances returns the Instances field if non-nil, zero value otherwise.
func (o *CreateClusterProperties) 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 *CreateClusterProperties) SetInstances(v int32)
SetInstances sets Instances field to given value.
func (o *CreateClusterProperties) GetCores() int32
GetCores returns the Cores field if non-nil, zero value otherwise.
func (o *CreateClusterProperties) 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 *CreateClusterProperties) SetCores(v int32)
SetCores sets Cores field to given value.
func (o *CreateClusterProperties) GetRam() int32
GetRam returns the Ram field if non-nil, zero value otherwise.
func (o *CreateClusterProperties) 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 *CreateClusterProperties) SetRam(v int32)
SetRam sets Ram field to given value.
func (o *CreateClusterProperties) GetStorageSize() int32
GetStorageSize returns the StorageSize field if non-nil, zero value otherwise.
func (o *CreateClusterProperties) 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 *CreateClusterProperties) SetStorageSize(v int32)
SetStorageSize sets StorageSize field to given value.
func (o *CreateClusterProperties) GetStorageType() StorageType
GetStorageType returns the StorageType field if non-nil, zero value otherwise.
func (o *CreateClusterProperties) 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 *CreateClusterProperties) SetStorageType(v StorageType)
SetStorageType sets StorageType field to given value.
func (o *CreateClusterProperties) GetConnections() []Connection
GetConnections returns the Connections field if non-nil, zero value otherwise.
func (o *CreateClusterProperties) 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 *CreateClusterProperties) SetConnections(v []Connection)
SetConnections sets Connections field to given value.
func (o *CreateClusterProperties) GetLocation() string
GetLocation returns the Location field if non-nil, zero value otherwise.
func (o *CreateClusterProperties) 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 *CreateClusterProperties) SetLocation(v string)
SetLocation sets Location field to given value.
func (o *CreateClusterProperties) GetBackupLocation() string
GetBackupLocation returns the BackupLocation field if non-nil, zero value otherwise.
func (o *CreateClusterProperties) GetBackupLocationOk() (*string, bool)
GetBackupLocationOk returns a tuple with the BackupLocation field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateClusterProperties) SetBackupLocation(v string)
SetBackupLocation sets BackupLocation field to given value.
func (o *CreateClusterProperties) HasBackupLocation() bool
HasBackupLocation returns a boolean if a field has been set.
func (o *CreateClusterProperties) GetDisplayName() string
GetDisplayName returns the DisplayName field if non-nil, zero value otherwise.
func (o *CreateClusterProperties) 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 *CreateClusterProperties) SetDisplayName(v string)
SetDisplayName sets DisplayName field to given value.
func (o *CreateClusterProperties) GetMaintenanceWindow() MaintenanceWindow
GetMaintenanceWindow returns the MaintenanceWindow field if non-nil, zero value otherwise.
func (o *CreateClusterProperties) 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 *CreateClusterProperties) SetMaintenanceWindow(v MaintenanceWindow)
SetMaintenanceWindow sets MaintenanceWindow field to given value.
func (o *CreateClusterProperties) HasMaintenanceWindow() bool
HasMaintenanceWindow returns a boolean if a field has been set.
func (o *CreateClusterProperties) GetCredentials() DBUser
GetCredentials returns the Credentials field if non-nil, zero value otherwise.
func (o *CreateClusterProperties) GetCredentialsOk() (*DBUser, 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 *CreateClusterProperties) SetCredentials(v DBUser)
SetCredentials sets Credentials field to given value.
func (o *CreateClusterProperties) GetSynchronizationMode() SynchronizationMode
GetSynchronizationMode returns the SynchronizationMode field if non-nil, zero value otherwise.
func (o *CreateClusterProperties) GetSynchronizationModeOk() (*SynchronizationMode, bool)
GetSynchronizationModeOk returns a tuple with the SynchronizationMode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateClusterProperties) SetSynchronizationMode(v SynchronizationMode)
SetSynchronizationMode sets SynchronizationMode field to given value.
func (o *CreateClusterProperties) GetFromBackup() CreateRestoreRequest
GetFromBackup returns the FromBackup field if non-nil, zero value otherwise.
func (o *CreateClusterProperties) GetFromBackupOk() (*CreateRestoreRequest, bool)
GetFromBackupOk returns a tuple with the FromBackup field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateClusterProperties) SetFromBackup(v CreateRestoreRequest)
SetFromBackup sets FromBackup field to given value.
func (o *CreateClusterProperties) HasFromBackup() bool
HasFromBackup returns a boolean if a field has been set.
Last modified 1yr ago