def locations=(locations)
      validator = EnumAttributeValidator.new('String', ["nodes", "versions", "deleted-nodes"])
      unless validator.valid?(locations)
        fail ArgumentError, "invalid value for 'locations', must be one of #{validator.allowable_values}."
      end
      @locations = locations
    end
def locations=(locations)
      validator = EnumAttributeValidator.new('String', ["nodes", "versions", "deleted-nodes"])
      unless validator.valid?(locations)
        fail ArgumentError, "invalid value for 'locations', must be one of #{validator.allowable_values}."
      end
      @locations = locations
    end
Custom attribute writer method checking allowed values (enum).
 @param [Object] locations Object to be assigned