/*
 * Svix API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * API version: 1.1.1
 */

// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

package openapi

import (
	"encoding/json"
)

// AppUsageStatsOut struct for AppUsageStatsOut
type AppUsageStatsOut struct {
	Id string `json:"id"`
	Status BackgroundTaskStatus `json:"status"`
	Task BackgroundTaskType `json:"task"`
}

// NewAppUsageStatsOut instantiates a new AppUsageStatsOut 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 NewAppUsageStatsOut(id string, status BackgroundTaskStatus, task BackgroundTaskType) *AppUsageStatsOut {
	this := AppUsageStatsOut{}
	this.Id = id
	this.Status = status
	this.Task = task
	return &this
}

// NewAppUsageStatsOutWithDefaults instantiates a new AppUsageStatsOut 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 NewAppUsageStatsOutWithDefaults() *AppUsageStatsOut {
	this := AppUsageStatsOut{}
	return &this
}

// GetId returns the Id field value
func (o *AppUsageStatsOut) GetId() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.Id
}

// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
func (o *AppUsageStatsOut) GetIdOk() (*string, bool) {
	if o == nil  {
		return nil, false
	}
	return &o.Id, true
}

// SetId sets field value
func (o *AppUsageStatsOut) SetId(v string) {
	o.Id = v
}

// GetStatus returns the Status field value
func (o *AppUsageStatsOut) GetStatus() BackgroundTaskStatus {
	if o == nil {
		var ret BackgroundTaskStatus
		return ret
	}

	return o.Status
}

// GetStatusOk returns a tuple with the Status field value
// and a boolean to check if the value has been set.
func (o *AppUsageStatsOut) GetStatusOk() (*BackgroundTaskStatus, bool) {
	if o == nil  {
		return nil, false
	}
	return &o.Status, true
}

// SetStatus sets field value
func (o *AppUsageStatsOut) SetStatus(v BackgroundTaskStatus) {
	o.Status = v
}

// GetTask returns the Task field value
func (o *AppUsageStatsOut) GetTask() BackgroundTaskType {
	if o == nil {
		var ret BackgroundTaskType
		return ret
	}

	return o.Task
}

// GetTaskOk returns a tuple with the Task field value
// and a boolean to check if the value has been set.
func (o *AppUsageStatsOut) GetTaskOk() (*BackgroundTaskType, bool) {
	if o == nil  {
		return nil, false
	}
	return &o.Task, true
}

// SetTask sets field value
func (o *AppUsageStatsOut) SetTask(v BackgroundTaskType) {
	o.Task = v
}

func (o AppUsageStatsOut) MarshalJSON() ([]byte, error) {
	toSerialize := map[string]interface{}{}
	if true {
		toSerialize["id"] = o.Id
	}
	if true {
		toSerialize["status"] = o.Status
	}
	if true {
		toSerialize["task"] = o.Task
	}
	return json.Marshal(toSerialize)
}

type NullableAppUsageStatsOut struct {
	value *AppUsageStatsOut
	isSet bool
}

func (v NullableAppUsageStatsOut) Get() *AppUsageStatsOut {
	return v.value
}

func (v *NullableAppUsageStatsOut) Set(val *AppUsageStatsOut) {
	v.value = val
	v.isSet = true
}

func (v NullableAppUsageStatsOut) IsSet() bool {
	return v.isSet
}

func (v *NullableAppUsageStatsOut) Unset() {
	v.value = nil
	v.isSet = false
}

func NewNullableAppUsageStatsOut(val *AppUsageStatsOut) *NullableAppUsageStatsOut {
	return &NullableAppUsageStatsOut{value: val, isSet: true}
}

func (v NullableAppUsageStatsOut) MarshalJSON() ([]byte, error) {
	return json.Marshal(v.value)
}

func (v *NullableAppUsageStatsOut) UnmarshalJSON(src []byte) error {
	v.isSet = true
	return json.Unmarshal(src, &v.value)
}


