TopicLogRetention
Last updated
Last updated
Name | Type | Description | Notes |
---|---|---|---|
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
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
func (o *TopicLogRetention) GetRetentionTime() int32
GetRetentionTime returns the RetentionTime field if non-nil, zero value otherwise.
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.
func (o *TopicLogRetention) SetRetentionTime(v int32)
SetRetentionTime sets RetentionTime field to given value.
func (o *TopicLogRetention) HasRetentionTime() bool
HasRetentionTime returns a boolean if a field has been set.
func (o *TopicLogRetention) GetSegmentBytes() int32
GetSegmentBytes returns the SegmentBytes field if non-nil, zero value otherwise.
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.
func (o *TopicLogRetention) SetSegmentBytes(v int32)
SetSegmentBytes sets SegmentBytes field to given value.
func (o *TopicLogRetention) HasSegmentBytes() bool
HasSegmentBytes returns a boolean if a field has been set.
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]