src/runtime/virtcontainers/pkg/cloud-hypervisor/client/docs/TokenBucket.md
| Name | Type | Description | Notes |
|---|---|---|---|
| Size | int64 | The total number of tokens this bucket can hold. | |
| OneTimeBurst | Pointer to int64 | The initial size of a token bucket. | [optional] |
| RefillTime | int64 | The amount of milliseconds it takes for the bucket to refill. |
func NewTokenBucket(size int64, refillTime int64, ) *TokenBucket
NewTokenBucket instantiates a new TokenBucket 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 NewTokenBucketWithDefaults() *TokenBucket
NewTokenBucketWithDefaults instantiates a new TokenBucket 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 *TokenBucket) GetSize() int64
GetSize returns the Size field if non-nil, zero value otherwise.
func (o *TokenBucket) GetSizeOk() (*int64, bool)
GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *TokenBucket) SetSize(v int64)
SetSize sets Size field to given value.
func (o *TokenBucket) GetOneTimeBurst() int64
GetOneTimeBurst returns the OneTimeBurst field if non-nil, zero value otherwise.
func (o *TokenBucket) GetOneTimeBurstOk() (*int64, bool)
GetOneTimeBurstOk returns a tuple with the OneTimeBurst field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *TokenBucket) SetOneTimeBurst(v int64)
SetOneTimeBurst sets OneTimeBurst field to given value.
func (o *TokenBucket) HasOneTimeBurst() bool
HasOneTimeBurst returns a boolean if a field has been set.
func (o *TokenBucket) GetRefillTime() int64
GetRefillTime returns the RefillTime field if non-nil, zero value otherwise.
func (o *TokenBucket) GetRefillTimeOk() (*int64, bool)
GetRefillTimeOk returns a tuple with the RefillTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *TokenBucket) SetRefillTime(v int64)
SetRefillTime sets RefillTime field to given value.