SetNillableServer sets the "server" field if the given value is not nil.
(s *string)
| 93 | |
| 94 | // SetNillableServer sets the "server" field if the given value is not nil. |
| 95 | func (nc *NodeCreate) SetNillableServer(s *string) *NodeCreate { |
| 96 | if s != nil { |
| 97 | nc.SetServer(*s) |
| 98 | } |
| 99 | return nc |
| 100 | } |
| 101 | |
| 102 | // SetSlaveKey sets the "slave_key" field. |
| 103 | func (nc *NodeCreate) SetSlaveKey(s string) *NodeCreate { |