> For the complete documentation index, see [llms.txt](https://docs.ionos.com/cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionos.com/cloud/go/go-bundle/sdks/psql/models/backup.md).

# Backup

## Properties

| Name                           | Type                                                                                                                          | Description                                                                                                                                            | Notes       |
| ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------- |
| **ClusterId**                  | Pointer to **string**                                                                                                         | The unique identifier of the cluster this backup belongs to.                                                                                           | \[optional] |
| **PostgresClusterVersion**     | Pointer to **string**                                                                                                         | The PostgreSQL version of the cluster at backup time.                                                                                                  | \[optional] |
| **IsActive**                   | Pointer to **bool**                                                                                                           | Whether this is the currently active backup for the cluster.                                                                                           | \[optional] |
| **EarliestRecoveryTargetTime** | Pointer to [**time.Time**](https://github.com/ionos-cloud/sdk-go-bundle/blob/v2/products/dbaas/psql/docs/models/time.Time.md) | The earliest point in time to which the cluster can be restored from this backup.                                                                      | \[optional] |
| **LatestRecoveryTargetTime**   | Pointer to [**time.Time**](https://github.com/ionos-cloud/sdk-go-bundle/blob/v2/products/dbaas/psql/docs/models/time.Time.md) | The latest possible point in time to which the cluster can be restored. If the backup can be restored up to the current time, this field will be null. | \[optional] |
| **Location**                   | Pointer to **string**                                                                                                         | The Object Storage location where the backup will be created. The BackupLocations provides a list of supported locations.                              | \[optional] |

## Methods

### NewBackup

`func NewBackup() *Backup`

NewBackup instantiates a new Backup 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

### NewBackupWithDefaults

`func NewBackupWithDefaults() *Backup`

NewBackupWithDefaults instantiates a new Backup 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

### GetClusterId

`func (o *Backup) GetClusterId() string`

GetClusterId returns the ClusterId field if non-nil, zero value otherwise.

### GetClusterIdOk

`func (o *Backup) GetClusterIdOk() (*string, bool)`

GetClusterIdOk returns a tuple with the ClusterId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

### SetClusterId

`func (o *Backup) SetClusterId(v string)`

SetClusterId sets ClusterId field to given value.

### HasClusterId

`func (o *Backup) HasClusterId() bool`

HasClusterId returns a boolean if a field has been set.

### GetPostgresClusterVersion

`func (o *Backup) GetPostgresClusterVersion() string`

GetPostgresClusterVersion returns the PostgresClusterVersion field if non-nil, zero value otherwise.

### GetPostgresClusterVersionOk

`func (o *Backup) GetPostgresClusterVersionOk() (*string, bool)`

GetPostgresClusterVersionOk returns a tuple with the PostgresClusterVersion field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

### SetPostgresClusterVersion

`func (o *Backup) SetPostgresClusterVersion(v string)`

SetPostgresClusterVersion sets PostgresClusterVersion field to given value.

### HasPostgresClusterVersion

`func (o *Backup) HasPostgresClusterVersion() bool`

HasPostgresClusterVersion returns a boolean if a field has been set.

### GetIsActive

`func (o *Backup) GetIsActive() bool`

GetIsActive returns the IsActive field if non-nil, zero value otherwise.

### GetIsActiveOk

`func (o *Backup) GetIsActiveOk() (*bool, bool)`

GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

### SetIsActive

`func (o *Backup) SetIsActive(v bool)`

SetIsActive sets IsActive field to given value.

### HasIsActive

`func (o *Backup) HasIsActive() bool`

HasIsActive returns a boolean if a field has been set.

### GetEarliestRecoveryTargetTime

`func (o *Backup) GetEarliestRecoveryTargetTime() time.Time`

GetEarliestRecoveryTargetTime returns the EarliestRecoveryTargetTime field if non-nil, zero value otherwise.

### GetEarliestRecoveryTargetTimeOk

`func (o *Backup) GetEarliestRecoveryTargetTimeOk() (*time.Time, bool)`

GetEarliestRecoveryTargetTimeOk returns a tuple with the EarliestRecoveryTargetTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

### SetEarliestRecoveryTargetTime

`func (o *Backup) SetEarliestRecoveryTargetTime(v time.Time)`

SetEarliestRecoveryTargetTime sets EarliestRecoveryTargetTime field to given value.

### HasEarliestRecoveryTargetTime

`func (o *Backup) HasEarliestRecoveryTargetTime() bool`

HasEarliestRecoveryTargetTime returns a boolean if a field has been set.

### GetLatestRecoveryTargetTime

`func (o *Backup) GetLatestRecoveryTargetTime() time.Time`

GetLatestRecoveryTargetTime returns the LatestRecoveryTargetTime field if non-nil, zero value otherwise.

### GetLatestRecoveryTargetTimeOk

`func (o *Backup) GetLatestRecoveryTargetTimeOk() (*time.Time, bool)`

GetLatestRecoveryTargetTimeOk returns a tuple with the LatestRecoveryTargetTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

### SetLatestRecoveryTargetTime

`func (o *Backup) SetLatestRecoveryTargetTime(v time.Time)`

SetLatestRecoveryTargetTime sets LatestRecoveryTargetTime field to given value.

### HasLatestRecoveryTargetTime

`func (o *Backup) HasLatestRecoveryTargetTime() bool`

HasLatestRecoveryTargetTime returns a boolean if a field has been set.

### GetLocation

`func (o *Backup) GetLocation() string`

GetLocation returns the Location field if non-nil, zero value otherwise.

### GetLocationOk

`func (o *Backup) 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.

### SetLocation

`func (o *Backup) SetLocation(v string)`

SetLocation sets Location field to given value.

### HasLocation

`func (o *Backup) HasLocation() bool`

HasLocation returns a boolean if a field has been set.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ionos.com/cloud/go/go-bundle/sdks/psql/models/backup.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
