/* STACKIT MSSQL Service API This is the documentation for the STACKIT MSSQL service API version: 3alpha1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package sqlserverflexalpha import ( "encoding/json" ) // checks if the ListUserResponse type satisfies the MappedNullable interface at compile time var _ MappedNullable = &ListUserResponse{} /* types and functions for pagination */ // isModel type ListUserResponseGetPaginationAttributeType = *Pagination type ListUserResponseGetPaginationArgType = Pagination type ListUserResponseGetPaginationRetType = Pagination func getListUserResponseGetPaginationAttributeTypeOk(arg ListUserResponseGetPaginationAttributeType) (ret ListUserResponseGetPaginationRetType, ok bool) { if arg == nil { return ret, false } return *arg, true } func setListUserResponseGetPaginationAttributeType(arg *ListUserResponseGetPaginationAttributeType, val ListUserResponseGetPaginationRetType) { *arg = &val } /* types and functions for users */ // isArray type ListUserResponseGetUsersAttributeType = *[]ListUser type ListUserResponseGetUsersArgType = []ListUser type ListUserResponseGetUsersRetType = []ListUser func getListUserResponseGetUsersAttributeTypeOk(arg ListUserResponseGetUsersAttributeType) (ret ListUserResponseGetUsersRetType, ok bool) { if arg == nil { return ret, false } return *arg, true } func setListUserResponseGetUsersAttributeType(arg *ListUserResponseGetUsersAttributeType, val ListUserResponseGetUsersRetType) { *arg = &val } // ListUserResponse struct for ListUserResponse type ListUserResponse struct { // REQUIRED Pagination ListUserResponseGetPaginationAttributeType `json:"pagination" required:"true"` // List of all users inside an instance // REQUIRED Users ListUserResponseGetUsersAttributeType `json:"users" required:"true"` } type _ListUserResponse ListUserResponse // NewListUserResponse instantiates a new ListUserResponse 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 NewListUserResponse(pagination ListUserResponseGetPaginationArgType, users ListUserResponseGetUsersArgType) *ListUserResponse { this := ListUserResponse{} setListUserResponseGetPaginationAttributeType(&this.Pagination, pagination) setListUserResponseGetUsersAttributeType(&this.Users, users) return &this } // NewListUserResponseWithDefaults instantiates a new ListUserResponse 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 NewListUserResponseWithDefaults() *ListUserResponse { this := ListUserResponse{} return &this } // GetPagination returns the Pagination field value func (o *ListUserResponse) GetPagination() (ret ListUserResponseGetPaginationRetType) { ret, _ = o.GetPaginationOk() return ret } // GetPaginationOk returns a tuple with the Pagination field value // and a boolean to check if the value has been set. func (o *ListUserResponse) GetPaginationOk() (ret ListUserResponseGetPaginationRetType, ok bool) { return getListUserResponseGetPaginationAttributeTypeOk(o.Pagination) } // SetPagination sets field value func (o *ListUserResponse) SetPagination(v ListUserResponseGetPaginationRetType) { setListUserResponseGetPaginationAttributeType(&o.Pagination, v) } // GetUsers returns the Users field value func (o *ListUserResponse) GetUsers() (ret ListUserResponseGetUsersRetType) { ret, _ = o.GetUsersOk() return ret } // GetUsersOk returns a tuple with the Users field value // and a boolean to check if the value has been set. func (o *ListUserResponse) GetUsersOk() (ret ListUserResponseGetUsersRetType, ok bool) { return getListUserResponseGetUsersAttributeTypeOk(o.Users) } // SetUsers sets field value func (o *ListUserResponse) SetUsers(v ListUserResponseGetUsersRetType) { setListUserResponseGetUsersAttributeType(&o.Users, v) } func (o ListUserResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getListUserResponseGetPaginationAttributeTypeOk(o.Pagination); ok { toSerialize["Pagination"] = val } if val, ok := getListUserResponseGetUsersAttributeTypeOk(o.Users); ok { toSerialize["Users"] = val } return toSerialize, nil } type NullableListUserResponse struct { value *ListUserResponse isSet bool } func (v NullableListUserResponse) Get() *ListUserResponse { return v.value } func (v *NullableListUserResponse) Set(val *ListUserResponse) { v.value = val v.isSet = true } func (v NullableListUserResponse) IsSet() bool { return v.isSet } func (v *NullableListUserResponse) Unset() { v.value = nil v.isSet = false } func NewNullableListUserResponse(val *ListUserResponse) *NullableListUserResponse { return &NullableListUserResponse{value: val, isSet: true} } func (v NullableListUserResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableListUserResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }