> 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/kafka/models/topiclogretention.md).

# TopicLogRetention

## Properties

| Name              | Type                 | Description                                                                                                                                                                                                                            | Notes                                |
| ----------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------ |
| **RetentionTime** | Pointer to **int32** | This configuration controls the maximum time we will retain a log before we will discard old log segments to free up space. This represents an SLA on how soon consumers must read their data. If set to -1, no time limit is applied. | \[optional] \[default to 604800000]  |
| **SegmentBytes**  | Pointer to **int32** | This configuration controls the segment file size for the log. Retention and cleaning is always done a file at a time so a larger segment size means fewer files but less granular control over retention.                             | \[optional] \[default to 1073741824] |

## Methods

### NewTopicLogRetention

`func NewTopicLogRetention() *TopicLogRetention`

NewTopicLogRetention instantiates a new TopicLogRetention 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

### NewTopicLogRetentionWithDefaults

`func NewTopicLogRetentionWithDefaults() *TopicLogRetention`

NewTopicLogRetentionWithDefaults instantiates a new TopicLogRetention 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

### GetRetentionTime

`func (o *TopicLogRetention) GetRetentionTime() int32`

GetRetentionTime returns the RetentionTime field if non-nil, zero value otherwise.

### GetRetentionTimeOk

`func (o *TopicLogRetention) GetRetentionTimeOk() (*int32, bool)`

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

### SetRetentionTime

`func (o *TopicLogRetention) SetRetentionTime(v int32)`

SetRetentionTime sets RetentionTime field to given value.

### HasRetentionTime

`func (o *TopicLogRetention) HasRetentionTime() bool`

HasRetentionTime returns a boolean if a field has been set.

### GetSegmentBytes

`func (o *TopicLogRetention) GetSegmentBytes() int32`

GetSegmentBytes returns the SegmentBytes field if non-nil, zero value otherwise.

### GetSegmentBytesOk

`func (o *TopicLogRetention) GetSegmentBytesOk() (*int32, bool)`

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

### SetSegmentBytes

`func (o *TopicLogRetention) SetSegmentBytes(v int32)`

SetSegmentBytes sets SegmentBytes field to given value.

### HasSegmentBytes

`func (o *TopicLogRetention) HasSegmentBytes() bool`

HasSegmentBytes 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/kafka/models/topiclogretention.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.
