/* * Subset of Influx API covered by Influx CLI * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * API version: 2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package api import ( "encoding/json" ) // TaskLinks struct for TaskLinks type TaskLinks struct { // URI of resource. Self *string `json:"self,omitempty" yaml:"self,omitempty"` // URI of resource. Owners *string `json:"owners,omitempty" yaml:"owners,omitempty"` // URI of resource. Members *string `json:"members,omitempty" yaml:"members,omitempty"` // URI of resource. Runs *string `json:"runs,omitempty" yaml:"runs,omitempty"` // URI of resource. Logs *string `json:"logs,omitempty" yaml:"logs,omitempty"` // URI of resource. Labels *string `json:"labels,omitempty" yaml:"labels,omitempty"` } // NewTaskLinks instantiates a new TaskLinks 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 NewTaskLinks() *TaskLinks { this := TaskLinks{} return &this } // NewTaskLinksWithDefaults instantiates a new TaskLinks 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 NewTaskLinksWithDefaults() *TaskLinks { this := TaskLinks{} return &this } // GetSelf returns the Self field value if set, zero value otherwise. func (o *TaskLinks) GetSelf() string { if o == nil || o.Self == nil { var ret string return ret } return *o.Self } // GetSelfOk returns a tuple with the Self field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskLinks) GetSelfOk() (*string, bool) { if o == nil || o.Self == nil { return nil, false } return o.Self, true } // HasSelf returns a boolean if a field has been set. func (o *TaskLinks) HasSelf() bool { if o != nil && o.Self != nil { return true } return false } // SetSelf gets a reference to the given string and assigns it to the Self field. func (o *TaskLinks) SetSelf(v string) { o.Self = &v } // GetOwners returns the Owners field value if set, zero value otherwise. func (o *TaskLinks) GetOwners() string { if o == nil || o.Owners == nil { var ret string return ret } return *o.Owners } // GetOwnersOk returns a tuple with the Owners field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskLinks) GetOwnersOk() (*string, bool) { if o == nil || o.Owners == nil { return nil, false } return o.Owners, true } // HasOwners returns a boolean if a field has been set. func (o *TaskLinks) HasOwners() bool { if o != nil && o.Owners != nil { return true } return false } // SetOwners gets a reference to the given string and assigns it to the Owners field. func (o *TaskLinks) SetOwners(v string) { o.Owners = &v } // GetMembers returns the Members field value if set, zero value otherwise. func (o *TaskLinks) GetMembers() string { if o == nil || o.Members == nil { var ret string return ret } return *o.Members } // GetMembersOk returns a tuple with the Members field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskLinks) GetMembersOk() (*string, bool) { if o == nil || o.Members == nil { return nil, false } return o.Members, true } // HasMembers returns a boolean if a field has been set. func (o *TaskLinks) HasMembers() bool { if o != nil && o.Members != nil { return true } return false } // SetMembers gets a reference to the given string and assigns it to the Members field. func (o *TaskLinks) SetMembers(v string) { o.Members = &v } // GetRuns returns the Runs field value if set, zero value otherwise. func (o *TaskLinks) GetRuns() string { if o == nil || o.Runs == nil { var ret string return ret } return *o.Runs } // GetRunsOk returns a tuple with the Runs field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskLinks) GetRunsOk() (*string, bool) { if o == nil || o.Runs == nil { return nil, false } return o.Runs, true } // HasRuns returns a boolean if a field has been set. func (o *TaskLinks) HasRuns() bool { if o != nil && o.Runs != nil { return true } return false } // SetRuns gets a reference to the given string and assigns it to the Runs field. func (o *TaskLinks) SetRuns(v string) { o.Runs = &v } // GetLogs returns the Logs field value if set, zero value otherwise. func (o *TaskLinks) GetLogs() string { if o == nil || o.Logs == nil { var ret string return ret } return *o.Logs } // GetLogsOk returns a tuple with the Logs field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskLinks) GetLogsOk() (*string, bool) { if o == nil || o.Logs == nil { return nil, false } return o.Logs, true } // HasLogs returns a boolean if a field has been set. func (o *TaskLinks) HasLogs() bool { if o != nil && o.Logs != nil { return true } return false } // SetLogs gets a reference to the given string and assigns it to the Logs field. func (o *TaskLinks) SetLogs(v string) { o.Logs = &v } // GetLabels returns the Labels field value if set, zero value otherwise. func (o *TaskLinks) GetLabels() string { if o == nil || o.Labels == nil { var ret string return ret } return *o.Labels } // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskLinks) GetLabelsOk() (*string, bool) { if o == nil || o.Labels == nil { return nil, false } return o.Labels, true } // HasLabels returns a boolean if a field has been set. func (o *TaskLinks) HasLabels() bool { if o != nil && o.Labels != nil { return true } return false } // SetLabels gets a reference to the given string and assigns it to the Labels field. func (o *TaskLinks) SetLabels(v string) { o.Labels = &v } func (o TaskLinks) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Self != nil { toSerialize["self"] = o.Self } if o.Owners != nil { toSerialize["owners"] = o.Owners } if o.Members != nil { toSerialize["members"] = o.Members } if o.Runs != nil { toSerialize["runs"] = o.Runs } if o.Logs != nil { toSerialize["logs"] = o.Logs } if o.Labels != nil { toSerialize["labels"] = o.Labels } return json.Marshal(toSerialize) } type NullableTaskLinks struct { value *TaskLinks isSet bool } func (v NullableTaskLinks) Get() *TaskLinks { return v.value } func (v *NullableTaskLinks) Set(val *TaskLinks) { v.value = val v.isSet = true } func (v NullableTaskLinks) IsSet() bool { return v.isSet } func (v *NullableTaskLinks) Unset() { v.value = nil v.isSet = false } func NewNullableTaskLinks(val *TaskLinks) *NullableTaskLinks { return &NullableTaskLinks{value: val, isSet: true} } func (v NullableTaskLinks) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableTaskLinks) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }