SetNillableName sets the "name" field if the given value is not nil.
(s *string)
| 79 | |
| 80 | // SetNillableName sets the "name" field if the given value is not nil. |
| 81 | func (nu *NodeUpdate) SetNillableName(s *string) *NodeUpdate { |
| 82 | if s != nil { |
| 83 | nu.SetName(*s) |
| 84 | } |
| 85 | return nu |
| 86 | } |
| 87 | |
| 88 | // SetType sets the "type" field. |
| 89 | func (nu *NodeUpdate) SetType(n node.Type) *NodeUpdate { |