# Destination

## Properties

| Name                | Type                  | Description                                                                                            | Notes                            |
| ------------------- | --------------------- | ------------------------------------------------------------------------------------------------------ | -------------------------------- |
| **Type**            | Pointer to **string** | The internal output stream to send logs to                                                             | \[optional] \[default to "loki"] |
| **RetentionInDays** | Pointer to **int32**  | defines the number of days a log record should be kept in loki. Works with loki destination type only. | \[optional] \[default to 30]     |

## Methods

### NewDestination

`func NewDestination() *Destination`

NewDestination instantiates a new Destination 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

### NewDestinationWithDefaults

`func NewDestinationWithDefaults() *Destination`

NewDestinationWithDefaults instantiates a new Destination 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

### GetType

`func (o *Destination) GetType() string`

GetType returns the Type field if non-nil, zero value otherwise.

### GetTypeOk

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

### SetType

`func (o *Destination) SetType(v string)`

SetType sets Type field to given value.

### HasType

`func (o *Destination) HasType() bool`

HasType returns a boolean if a field has been set.

### GetRetentionInDays

`func (o *Destination) GetRetentionInDays() int32`

GetRetentionInDays returns the RetentionInDays field if non-nil, zero value otherwise.

### GetRetentionInDaysOk

`func (o *Destination) GetRetentionInDaysOk() (*int32, bool)`

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

### SetRetentionInDays

`func (o *Destination) SetRetentionInDays(v int32)`

SetRetentionInDays sets RetentionInDays field to given value.

### HasRetentionInDays

`func (o *Destination) HasRetentionInDays() bool`

HasRetentionInDays returns a boolean if a field has been set.


---

# Agent Instructions: 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:

```
GET https://docs.ionos.com/sdk-go-logging/models/destination.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
