Topic
Last updated
Last updated
Name | Type | Description | Notes |
---|---|---|---|
func NewTopic(name string, ) *Topic
NewTopic instantiates a new Topic 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 NewTopicWithDefaults() *Topic
NewTopicWithDefaults instantiates a new Topic 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 *Topic) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *Topic) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Topic) SetName(v string)
SetName sets Name field to given value.
func (o *Topic) GetReplicationFactor() int32
GetReplicationFactor returns the ReplicationFactor field if non-nil, zero value otherwise.
func (o *Topic) GetReplicationFactorOk() (*int32, bool)
GetReplicationFactorOk returns a tuple with the ReplicationFactor field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Topic) SetReplicationFactor(v int32)
SetReplicationFactor sets ReplicationFactor field to given value.
func (o *Topic) HasReplicationFactor() bool
HasReplicationFactor returns a boolean if a field has been set.
func (o *Topic) GetNumberOfPartitions() int32
GetNumberOfPartitions returns the NumberOfPartitions field if non-nil, zero value otherwise.
func (o *Topic) GetNumberOfPartitionsOk() (*int32, bool)
GetNumberOfPartitionsOk returns a tuple with the NumberOfPartitions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Topic) SetNumberOfPartitions(v int32)
SetNumberOfPartitions sets NumberOfPartitions field to given value.
func (o *Topic) HasNumberOfPartitions() bool
HasNumberOfPartitions returns a boolean if a field has been set.
func (o *Topic) GetLogRetention() TopicLogRetention
GetLogRetention returns the LogRetention field if non-nil, zero value otherwise.
func (o *Topic) GetLogRetentionOk() (*TopicLogRetention, bool)
GetLogRetentionOk returns a tuple with the LogRetention field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Topic) SetLogRetention(v TopicLogRetention)
SetLogRetention sets LogRetention field to given value.
func (o *Topic) HasLogRetention() bool
HasLogRetention returns a boolean if a field has been set.
Name
string
The name of the Kafka cluster topic. Must be 63 characters or less and must begin and end with an alphanumeric character (`[a-z0-9A-Z]`) with dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
ReplicationFactor
Pointer to int32
The number of replicas of the topic. The replication factor determines how many copies of the topic are stored on different brokers. The replication factor must be less than or equal to the number of brokers in the Kafka cluster.
[optional] [default to 3]
NumberOfPartitions
Pointer to int32
The number of partitions of the topic. Partitions allow for parallel processing of messages.
[optional] [default to 3]
LogRetention
Pointer to TopicLogRetention
[optional]