github.com/optim-corp/cios-golang-sdk@v0.5.1/cios/model_device_monitoring_i_ds_request.go (about) 1 /* 2 * Cios Openapi 3 * 4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 * 6 * API version: 1.0.1 7 */ 8 9 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 11 package cios 12 13 import ( 14 "encoding/json" 15 ) 16 17 // DeviceMonitoringIDsRequest struct for DeviceMonitoringIDsRequest 18 type DeviceMonitoringIDsRequest struct { 19 DeviceIds []string `json:"device_ids"` 20 } 21 22 // NewDeviceMonitoringIDsRequest instantiates a new DeviceMonitoringIDsRequest object 23 // This constructor will assign default values to properties that have it defined, 24 // and makes sure properties required by API are set, but the set of arguments 25 // will change when the set of required properties is changed 26 func NewDeviceMonitoringIDsRequest(deviceIds []string, ) *DeviceMonitoringIDsRequest { 27 this := DeviceMonitoringIDsRequest{} 28 this.DeviceIds = deviceIds 29 return &this 30 } 31 32 // NewDeviceMonitoringIDsRequestWithDefaults instantiates a new DeviceMonitoringIDsRequest object 33 // This constructor will only assign default values to properties that have it defined, 34 // but it doesn't guarantee that properties required by API are set 35 func NewDeviceMonitoringIDsRequestWithDefaults() *DeviceMonitoringIDsRequest { 36 this := DeviceMonitoringIDsRequest{} 37 return &this 38 } 39 40 // GetDeviceIds returns the DeviceIds field value 41 func (o *DeviceMonitoringIDsRequest) GetDeviceIds() []string { 42 if o == nil { 43 var ret []string 44 return ret 45 } 46 47 return o.DeviceIds 48 } 49 50 // GetDeviceIdsOk returns a tuple with the DeviceIds field value 51 // and a boolean to check if the value has been set. 52 func (o *DeviceMonitoringIDsRequest) GetDeviceIdsOk() (*[]string, bool) { 53 if o == nil { 54 return nil, false 55 } 56 return &o.DeviceIds, true 57 } 58 59 // SetDeviceIds sets field value 60 func (o *DeviceMonitoringIDsRequest) SetDeviceIds(v []string) { 61 o.DeviceIds = v 62 } 63 64 func (o DeviceMonitoringIDsRequest) MarshalJSON() ([]byte, error) { 65 toSerialize := map[string]interface{}{} 66 if true { 67 toSerialize["device_ids"] = o.DeviceIds 68 } 69 return json.Marshal(toSerialize) 70 } 71 72 type NullableDeviceMonitoringIDsRequest struct { 73 value *DeviceMonitoringIDsRequest 74 isSet bool 75 } 76 77 func (v NullableDeviceMonitoringIDsRequest) Get() *DeviceMonitoringIDsRequest { 78 return v.value 79 } 80 81 func (v *NullableDeviceMonitoringIDsRequest) Set(val *DeviceMonitoringIDsRequest) { 82 v.value = val 83 v.isSet = true 84 } 85 86 func (v NullableDeviceMonitoringIDsRequest) IsSet() bool { 87 return v.isSet 88 } 89 90 func (v *NullableDeviceMonitoringIDsRequest) Unset() { 91 v.value = nil 92 v.isSet = false 93 } 94 95 func NewNullableDeviceMonitoringIDsRequest(val *DeviceMonitoringIDsRequest) *NullableDeviceMonitoringIDsRequest { 96 return &NullableDeviceMonitoringIDsRequest{value: val, isSet: true} 97 } 98 99 func (v NullableDeviceMonitoringIDsRequest) MarshalJSON() ([]byte, error) { 100 return json.Marshal(v.value) 101 } 102 103 func (v *NullableDeviceMonitoringIDsRequest) UnmarshalJSON(src []byte) error { 104 v.isSet = true 105 return json.Unmarshal(src, &v.value) 106 } 107 108